⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 udiv16.asm

📁 ADI BF535 DSP 图象直方图计算汇编优化源码
💻 ASM
字号:
/*******************************************************************************
Copyright(c) 2000 - 2002 Analog Devices. All Rights Reserved.
Developed by Joint Development Software Application Team, IPDC, Bangalore, India
for Blackfin DSPs  ( Micro Signal Architecture 1.0 specification).

By using this module you agree to the terms of the Analog Devices License
Agreement for DSP Software. 
********************************************************************************
Module Name     : udiv16.asm
Label Name      : __udiv16
Version         :   1.0
Change History  :

                Version     Date          Author            Comments
                1.0         05/16/2001    Srinivas          Original 

Description     : Routine for division of 2 unsigned integer, numerator must be 
                  greater than denominator. Denominator reg value is unchanged.
                  output in 16.0 integer format

Performance     :
                Code size   : 16 Bytes.
*******************************************************************************/
.section    L1_code;
.global     __udiv16;
.align      8;
    
__udiv16:

    P0 = 15;
    R0 <<= 1;
    DIVS(R0,R1);
    
    LOOP .INT_DIV LC0 = P0;
    LOOP_BEGIN .INT_DIV;
    DIVQ(R0,R1);
    LOOP_END .INT_DIV;
    
    R0 = R0.L (Z);
    RTS;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -