udiv16.asm
来自「ADI BF535 DSP 图象直方图计算汇编优化源码」· 汇编 代码 · 共 41 行
ASM
41 行
/*******************************************************************************
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 + =
减小字号Ctrl + -
显示快捷键?