diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-08-09 20:17:43 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-08-09 20:17:43 +0000 |
commit | a0d65971d4ae58870e62aff262d0f6528162ee86 (patch) | |
tree | 03671ecf454e1c77878e6628d1c2c9272e6aae84 /compiler-rt/lib/builtins | |
parent | 6063983c30cb1b789adb7957b5dd5e17d1f5e4d6 (diff) | |
download | bcm5719-llvm-a0d65971d4ae58870e62aff262d0f6528162ee86.tar.gz bcm5719-llvm-a0d65971d4ae58870e62aff262d0f6528162ee86.zip |
builtins: add signature to some assembly routines
Add a helpful description and a signature for the functions implemented in
assembly for the integral math routines. NFC.
llvm-svn: 215296
Diffstat (limited to 'compiler-rt/lib/builtins')
-rw-r--r-- | compiler-rt/lib/builtins/arm/divmodsi4.S | 4 | ||||
-rw-r--r-- | compiler-rt/lib/builtins/arm/divsi3.S | 4 | ||||
-rw-r--r-- | compiler-rt/lib/builtins/arm/modsi3.S | 3 | ||||
-rw-r--r-- | compiler-rt/lib/builtins/arm/udivmodsi4.S | 5 | ||||
-rw-r--r-- | compiler-rt/lib/builtins/arm/udivsi3.S | 4 | ||||
-rw-r--r-- | compiler-rt/lib/builtins/arm/umodsi3.S | 3 |
6 files changed, 23 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/arm/divmodsi4.S b/compiler-rt/lib/builtins/arm/divmodsi4.S index 91bb2a5c7a0..96527f7c5c3 100644 --- a/compiler-rt/lib/builtins/arm/divmodsi4.S +++ b/compiler-rt/lib/builtins/arm/divmodsi4.S @@ -27,6 +27,10 @@ .thumb #endif +@ int __divmodsi4(int divident, int divisor, int *remainder) +@ Calculate the quotient and remainder of the (signed) division. The return +@ value is the quotient, the remainder is placed in the variable. + .p2align 3 DEFINE_COMPILERRT_FUNCTION(__divmodsi4) #if __ARM_ARCH_EXT_IDIV__ diff --git a/compiler-rt/lib/builtins/arm/divsi3.S b/compiler-rt/lib/builtins/arm/divsi3.S index db47165afbc..73ee78d9c0e 100644 --- a/compiler-rt/lib/builtins/arm/divsi3.S +++ b/compiler-rt/lib/builtins/arm/divsi3.S @@ -29,6 +29,10 @@ .p2align 3 // Ok, APCS and AAPCS agree on 32 bit args, so it's safe to use the same routine. DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_idiv, __divsi3) + +@ int __divsi3(int divident, int divisor) +@ Calculate and return the quotient of the (signed) division. + DEFINE_COMPILERRT_FUNCTION(__divsi3) #if __ARM_ARCH_EXT_IDIV__ tst r1,r1 diff --git a/compiler-rt/lib/builtins/arm/modsi3.S b/compiler-rt/lib/builtins/arm/modsi3.S index 7ed305ea6e0..57ffa3b41a2 100644 --- a/compiler-rt/lib/builtins/arm/modsi3.S +++ b/compiler-rt/lib/builtins/arm/modsi3.S @@ -26,6 +26,9 @@ .thumb #endif +@ int __modsi3(int divident, int divisor) +@ Calculate and return the remainder of the (signed) division. + .p2align 3 DEFINE_COMPILERRT_FUNCTION(__modsi3) #if __ARM_ARCH_EXT_IDIV__ diff --git a/compiler-rt/lib/builtins/arm/udivmodsi4.S b/compiler-rt/lib/builtins/arm/udivmodsi4.S index aaece9727d3..d04cb9890bb 100644 --- a/compiler-rt/lib/builtins/arm/udivmodsi4.S +++ b/compiler-rt/lib/builtins/arm/udivmodsi4.S @@ -21,6 +21,11 @@ .thumb #endif +@ unsigned int __udivmodsi4(unsigned int divident, unsigned int divisor, +@ unsigned int *remainder) +@ Calculate the quotient and remainder of the (unsigned) division. The return +@ value is the quotient, the remainder is placed in the variable. + .p2align 2 DEFINE_COMPILERRT_FUNCTION(__udivmodsi4) #if __ARM_ARCH_EXT_IDIV__ diff --git a/compiler-rt/lib/builtins/arm/udivsi3.S b/compiler-rt/lib/builtins/arm/udivsi3.S index 34bd713fb1f..afe34e0cd72 100644 --- a/compiler-rt/lib/builtins/arm/udivsi3.S +++ b/compiler-rt/lib/builtins/arm/udivsi3.S @@ -23,6 +23,10 @@ .p2align 2 DEFINE_AEABI_FUNCTION_ALIAS(__aeabi_uidiv, __udivsi3) + +@ unsigned int __udivsi3(unsigned int divident, unsigned int divisor) +@ Calculate and return the quotient of the (unsigned) division. + DEFINE_COMPILERRT_FUNCTION(__udivsi3) #if __ARM_ARCH_EXT_IDIV__ tst r1, r1 diff --git a/compiler-rt/lib/builtins/arm/umodsi3.S b/compiler-rt/lib/builtins/arm/umodsi3.S index b0c62d73cd8..f9327acedf8 100644 --- a/compiler-rt/lib/builtins/arm/umodsi3.S +++ b/compiler-rt/lib/builtins/arm/umodsi3.S @@ -20,6 +20,9 @@ .thumb #endif +@ unsigned int __umodsi3(unsigned int divident, unsigned int divisor) +@ Calculate and return the remainder of the (unsigned) division. + .p2align 2 DEFINE_COMPILERRT_FUNCTION(__umodsi3) #if __ARM_ARCH_EXT_IDIV__ |