]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[CLEANUP] fd.c : regparm was hardcoded too.
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Oct 2006 21:10:10 +0000 (23:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 15 Oct 2006 21:10:10 +0000 (23:10 +0200)
src/fd.c

index 2f686519645a05abd679fb77f94cd4cdf507ab83..c7759c0d6de08df49eb9594403797e56946c713f 100644 (file)
--- a/src/fd.c
+++ b/src/fd.c
@@ -52,17 +52,17 @@ int cfg_polling_mechanism = 0;  /* POLL_USE_{SELECT|POLL|EPOLL} */
  * instead of the usual macros improve the FD_* performance by about 80%,
  * and that marking them regparm(2) adds another 20%.
  */
-void __attribute__((regparm(2))) my_fd_set(const int fd, fd_set *ev)
+REGPRM2 void my_fd_set(const int fd, fd_set *ev)
 {
        FD_SET(fd, ev);
 }
 
-void __attribute__((regparm(2))) my_fd_clr(const int fd, fd_set *ev)
+REGPRM2 void my_fd_clr(const int fd, fd_set *ev)
 {
        FD_CLR(fd, ev);
 }
 
-int __attribute__((regparm(2))) my_fd_isset(const int fd, const fd_set *ev)
+REGPRM2 int my_fd_isset(const int fd, const fd_set *ev)
 {
        return FD_ISSET(fd, ev);
 }