*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
This commit is contained in:
@@ -85,7 +85,7 @@ static off_t bb_full_fd_action(int src_fd, int dst_fd, off_t size)
|
||||
|
||||
|
||||
#if 0
|
||||
void complain_copyfd_and_die(off_t sz)
|
||||
void FAST_FUNC complain_copyfd_and_die(off_t sz)
|
||||
{
|
||||
if (sz != -1)
|
||||
bb_error_msg_and_die("short read");
|
||||
@@ -94,7 +94,7 @@ void complain_copyfd_and_die(off_t sz)
|
||||
}
|
||||
#endif
|
||||
|
||||
off_t bb_copyfd_size(int fd1, int fd2, off_t size)
|
||||
off_t FAST_FUNC bb_copyfd_size(int fd1, int fd2, off_t size)
|
||||
{
|
||||
if (size) {
|
||||
return bb_full_fd_action(fd1, fd2, size);
|
||||
@@ -102,7 +102,7 @@ off_t bb_copyfd_size(int fd1, int fd2, off_t size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void bb_copyfd_exact_size(int fd1, int fd2, off_t size)
|
||||
void FAST_FUNC bb_copyfd_exact_size(int fd1, int fd2, off_t size)
|
||||
{
|
||||
off_t sz = bb_copyfd_size(fd1, fd2, size);
|
||||
if (sz == size)
|
||||
@@ -113,7 +113,7 @@ void bb_copyfd_exact_size(int fd1, int fd2, off_t size)
|
||||
xfunc_die();
|
||||
}
|
||||
|
||||
off_t bb_copyfd_eof(int fd1, int fd2)
|
||||
off_t FAST_FUNC bb_copyfd_eof(int fd1, int fd2)
|
||||
{
|
||||
return bb_full_fd_action(fd1, fd2, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user