1
1

Added some "hot" attributes to mark a few routines that deserve

extra optimization.  Most likely this has no effect.
Этот коммит содержится в:
Jef Poskanzer 2013-02-18 07:33:36 -08:00
родитель 63a0b8d5df
Коммит ba55284d44
5 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -156,7 +156,7 @@ long get_tcpinfo_total_retransmits(struct iperf_interval_results *irp);
void print_tcpinfo(struct iperf_test *test); void print_tcpinfo(struct iperf_test *test);
void build_tcpinfo_message(struct iperf_interval_results *r, char *message); void build_tcpinfo_message(struct iperf_interval_results *r, char *message);
int iperf_send(struct iperf_test *, fd_set *); int iperf_send(struct iperf_test *, fd_set *) __attribute__((hot));
int iperf_recv(struct iperf_test *, fd_set *); int iperf_recv(struct iperf_test *, fd_set *);
void sig_handler(int); void sig_handler(int);
void usage(); void usage();

Просмотреть файл

@ -35,7 +35,7 @@ int iperf_tcp_recv(struct iperf_stream *);
* returns: bytes sent * returns: bytes sent
* *
*/ */
int iperf_tcp_send(struct iperf_stream *); int iperf_tcp_send(struct iperf_stream *) __attribute__((hot));
int iperf_tcp_listen(struct iperf_test *); int iperf_tcp_listen(struct iperf_test *);

Просмотреть файл

@ -25,7 +25,7 @@ int iperf_udp_recv(struct iperf_stream *);
* returns: bytes sent * returns: bytes sent
* *
*/ */
int iperf_udp_send(struct iperf_stream *); int iperf_udp_send(struct iperf_stream *) __attribute__((hot));
/** /**

Просмотреть файл

@ -12,7 +12,7 @@
int netdial(int, int, char *, char *, int); int netdial(int, int, char *, char *, int);
int netannounce(int, int, char *, int); int netannounce(int, int, char *, int);
int Nwrite(int, void *, int, int); int Nwrite(int, void *, int, int) __attribute__((hot));
int Nread(int, void *, int, int); int Nread(int, void *, int, int);
int getsock_tcp_mss(int); int getsock_tcp_mss(int);
int set_tcp_options(int, int, int); int set_tcp_options(int, int, int);

Просмотреть файл

@ -55,12 +55,12 @@ extern Timer* tmr_create(
** can just put the call to this routine right in your select(). Returns ** can just put the call to this routine right in your select(). Returns
** (struct timeval*) 0 if no timers are pending. ** (struct timeval*) 0 if no timers are pending.
*/ */
extern struct timeval* tmr_timeout( struct timeval* nowP ); extern struct timeval* tmr_timeout( struct timeval* nowP ) __attribute__((hot));
/* Run the list of timers. Your main program needs to call this every so often, /* Run the list of timers. Your main program needs to call this every so often,
** or as indicated by tmr_timeout(). ** or as indicated by tmr_timeout().
*/ */
extern void tmr_run( struct timeval* nowP ); extern void tmr_run( struct timeval* nowP ) __attribute__((hot));
/* Reset the clock on a timer, to current time plus the original timeout. */ /* Reset the clock on a timer, to current time plus the original timeout. */
extern void tmr_reset( struct timeval* nowP, Timer* timer ); extern void tmr_reset( struct timeval* nowP, Timer* timer );