📄 udiv16.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 + -