Use, in uncovered part, the END() macro in order to improve debugging.

In this specific case, Valgrind won't get confused when analyzing such
functions.

Sponsored by:	Sandvine Incorporated
Tested by:	emaste
MFC:		3 days
This commit is contained in:
Attilio Rao 2009-05-25 14:37:10 +00:00
parent 5265bc6013
commit 9235ed7199
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192760
57 changed files with 60 additions and 0 deletions

View file

@ -38,4 +38,5 @@ ENTRY(_atomic_lock)
movl $1, %eax
xchgq %rax, (%rdi)
ret
END(_atomic_lock)

View file

@ -39,4 +39,5 @@ ENTRY(_atomic_lock)
movl $1, %eax
xchg %eax, (%ecx)
ret
END(_atomic_lock)

View file

@ -58,6 +58,7 @@ ENTRY(_setjmp)
movl %edi,20(%eax)
xorl %eax,%eax
ret
END(_setjmp)
ENTRY(_longjmp)
movl 4(%esp),%edx
@ -73,3 +74,4 @@ ENTRY(_longjmp)
incl %eax
1: movl %ecx,0(%esp)
ret
END(_longjmp)

View file

@ -30,4 +30,5 @@ __FBSDID("$FreeBSD$")
ENTRY(sqrt)
sqrtsd %xmm0, %xmm0
ret
END(sqrt)

View file

@ -30,3 +30,4 @@ __FBSDID("$FreeBSD$")
ENTRY(sqrtf)
sqrtss %xmm0, %xmm0
ret
END(sqrtf)

View file

@ -34,3 +34,4 @@ __FBSDID("$FreeBSD$")
ENTRY(fn)
cvtsd2si %xmm0, %rax
ret
END(fn)

View file

@ -34,3 +34,4 @@ __FBSDID("$FreeBSD$")
ENTRY(fn)
cvtss2si %xmm0, %rax
ret
END(fn)

View file

@ -63,3 +63,4 @@ ENTRY(remquo)
fstpl -8(%rsp)
movsd -8(%rsp),%xmm0
ret
END(remquo)

View file

@ -63,3 +63,4 @@ ENTRY(remquof)
fstps -4(%rsp)
movss -4(%rsp),%xmm0
ret
END(remquof)

View file

@ -37,3 +37,4 @@ ENTRY(scalbn)
fstpl -8(%rsp)
movsd -8(%rsp),%xmm0
ret
END(scalbn)

View file

@ -37,6 +37,7 @@ ENTRY(scalbnf)
fstps -8(%rsp)
movss -8(%rsp),%xmm0
ret
END(scalbnf)
.globl CNAME(ldexpf)
.set CNAME(ldexpf),CNAME(scalbnf)

View file

@ -14,6 +14,7 @@ ENTRY(scalbnl)
fscale
fstp %st(1)
ret
END(scalbnl)
.globl CNAME(ldexpl)
.set CNAME(ldexpl),CNAME(scalbnl)

View file

@ -96,3 +96,4 @@ x_Inf_or_NaN:
x_not_minus_Inf:
fldl 4(%esp)
ret
END(exp)

View file

@ -46,3 +46,4 @@ ENTRY(fmod)
jp 1b
fstp %st(1)
ret
END(fmod)

View file

@ -42,3 +42,4 @@ ENTRY(log)
fldl 4(%esp)
fyl2x
ret
END(log)

View file

@ -42,3 +42,4 @@ ENTRY(log10)
fldl 4(%esp)
fyl2x
ret
END(log10)

View file

@ -13,3 +13,4 @@ ENTRY(log10f)
flds 4(%esp)
fyl2x
ret
END(log10f)

View file

@ -46,3 +46,4 @@ ENTRY(remainder)
jp 1b
fstp %st(1)
ret
END(remainder)

View file

@ -17,3 +17,4 @@ ENTRY(remainderf)
jp 1b
fstp %st(1)
ret
END(remainderf)

View file

@ -41,3 +41,4 @@ ENTRY(sqrt)
fldl 4(%esp)
fsqrt
ret
END(sqrt)

View file

@ -12,3 +12,4 @@ ENTRY(sqrtf)
flds 4(%esp)
fsqrt
ret
END(sqrtf)

View file

@ -56,3 +56,4 @@ ENTRY(ceil)
leave
ret
END(ceil)

View file

@ -27,3 +27,4 @@ ENTRY(ceilf)
leave
ret
END(ceilf)

View file

@ -25,3 +25,4 @@ ENTRY(ceill)
leave
ret
END(ceill)

View file

@ -46,3 +46,4 @@ ENTRY(copysign)
movl %eax,8(%esp)
fldl 4(%esp)
ret
END(copysign)

View file

@ -17,3 +17,4 @@ ENTRY(copysignf)
movl %eax,4(%esp)
flds 4(%esp)
ret
END(copysignf)

View file

@ -15,3 +15,4 @@ ENTRY(copysignl)
movl %eax,12(%esp)
fldt 4(%esp)
ret
END(copysignl)

View file

@ -54,3 +54,4 @@ ENTRY(cos)
fstp %st(1)
fcos
ret
END(cos)

View file

@ -44,3 +44,4 @@ ENTRY(finite)
setneb %al
andl $0x000000ff, %eax
ret
END(finite)

View file

@ -56,3 +56,4 @@ ENTRY(floor)
leave
ret
END(floor)

View file

@ -27,3 +27,4 @@ ENTRY(floorf)
leave
ret
END(floorf)

View file

@ -25,3 +25,4 @@ ENTRY(floorl)
leave
ret
END(floorl)

View file

@ -34,3 +34,4 @@ ENTRY(llrint)
popl %eax
popl %edx
ret
END(llrint)

View file

@ -34,3 +34,4 @@ ENTRY(llrintf)
popl %eax
popl %edx
ret
END(llrintf)

View file

@ -42,3 +42,4 @@ ENTRY(logb)
fxtract
fstp %st
ret
END(logb)

View file

@ -13,3 +13,4 @@ ENTRY(logbf)
fxtract
fstp %st
ret
END(logbf)

View file

@ -33,3 +33,4 @@ ENTRY(lrint)
fistpl (%esp)
popl %eax
ret
END(lrint)

View file

@ -33,3 +33,4 @@ ENTRY(lrintf)
fistpl (%esp)
popl %eax
ret
END(lrintf)

View file

@ -60,3 +60,4 @@ ENTRY(remquo)
movl 20(%esp),%ecx
movl %eax,(%ecx)
ret
END(remquo)

View file

@ -60,3 +60,4 @@ ENTRY(remquof)
movl 12(%esp),%ecx
movl %eax,(%ecx)
ret
END(remquof)

View file

@ -41,3 +41,4 @@ ENTRY(rint)
fldl 4(%esp)
frndint
ret
END(rint)

View file

@ -12,3 +12,4 @@ ENTRY(rintf)
flds 4(%esp)
frndint
ret
END(rintf)

View file

@ -43,3 +43,4 @@ ENTRY(scalbn)
fscale
fstp %st(1)
ret
END(scalbn)

View file

@ -14,6 +14,7 @@ ENTRY(scalbnf)
fscale
fstp %st(1) /* bug fix for fp stack overflow */
ret
END(scalbnf)
.globl CNAME(ldexpf)
.set CNAME(ldexpf),CNAME(scalbnf)

View file

@ -14,6 +14,7 @@ ENTRY(scalbnl)
fscale
fstp %st(1)
ret
END(scalbnl)
.globl CNAME(ldexpl)
.set CNAME(ldexpl),CNAME(scalbnl)

View file

@ -42,3 +42,4 @@ ENTRY(significand)
fxtract
fstp %st(1)
ret
END(significand)

View file

@ -13,3 +13,4 @@ ENTRY(significandf)
fxtract
fstp %st(1)
ret
END(significandf)

View file

@ -54,3 +54,4 @@ ENTRY(sin)
fstp %st(1)
fsin
ret
END(sin)

View file

@ -56,3 +56,4 @@ ENTRY(tan)
fptan
fstp %st(0)
ret
END(tan)

View file

@ -24,3 +24,4 @@ ENTRY(trunc)
leave
ret
END(trunc)

View file

@ -24,3 +24,4 @@ ENTRY(truncf)
leave
ret
END(truncf)

View file

@ -24,3 +24,4 @@ ENTRY(truncl)
leave
ret
END(truncl)

View file

@ -32,3 +32,4 @@ ENTRY(fma, 3)
fma.d f8 = f8, f9, f10
br.ret.sptk b0
}
END(fma)

View file

@ -32,3 +32,4 @@ ENTRY(fmaf, 3)
fma.s f8 = f8, f9, f10
br.ret.sptk b0
}
END(fmaf)

View file

@ -32,3 +32,4 @@ ENTRY(fmal, 3)
fma f8 = f8, f9, f10
br.ret.sptk b0
}
END(fmal)

View file

@ -99,6 +99,7 @@ ENTRY(uts_to_thread)
pop %ebx /* %ebx off stack */
popf /* flags off stack */
5: ret /* %eip off stack */
END(uts_to_thread)
/*
* int thread_to_uts(struct kse_thr_mailbox *tm, struct kse_mailbox *km);
@ -154,4 +155,5 @@ ENTRY(thread_to_uts)
pushl KM_FUNC_OFFSET(%edx) /* .. the uts can return to itself */
pushl KM_FUNC_OFFSET(%edx) /* push the address of the uts func */
2: ret
END(thread_to_uts)

View file

@ -99,6 +99,7 @@ ENTRY(uts_to_thread)
pop %ebx /* %ebx off stack */
popf /* flags off stack */
5: ret /* %eip off stack */
END(uts_to_thread)
/*
* int thread_to_uts(struct kse_thr_mailbox *tm, struct kse_mailbox *km);
@ -154,4 +155,5 @@ ENTRY(thread_to_uts)
pushl KM_FUNC_OFFSET(%edx) /* .. the uts can return to itself */
pushl KM_FUNC_OFFSET(%edx) /* push the address of the uts func */
2: ret
END(thread_to_uts)