📄 fabs.s
字号:
;-----------------------------------------------------------------------;
; fabs.s: Floating-point absolute value function.
;
; This file is part of the compact math library for the dsPIC30.
; (c) Microchip Technology. 2003.
;
;-----------------------------------------------------------------------;
.include "libm.inc"
.section .libm,code
;-----------------------------------------------------------------------;
;-----------------------------------------------------------------------;
;
; fabs
;
; Double-precision absolute value function.
;
; Input:
;
; (w3:w0) Floating-point number x
;
; Output:
;
; (w3:w0) Floating-point number |x|
;
; Description:
;
; Computes the absolute value of the argument x.
;
;-----------------------------------------------------------------------;
.global _fabs
.global _fabsl
_fabs:
_fabsl:
bclr w3,#15 ; |x|
return ; Done
;-----------------------------------------------------------------------;
.end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -