busybox/util-linux
Denys Vlasenko 2cbfd01c15 seedrng: code shrink
Struct initializers do this double init:
># util-linux/seedrng.c:88:              struct pollfd random_fd = {
        movl    $0, 132(%esp)   #, random_fd
        movl    $0, 136(%esp)   #, random_fd
...
># util-linux/seedrng.c:88:              struct pollfd random_fd = {
        movl    %eax, 140(%esp) # _110, random_fd.fd
        movw    $1, 144(%esp)   #, random_fd.events

and close(random_fd.fd) needs to pull the item from the stack:
        pushl   132(%esp)       # random_fd.fd
        call    close   #

function                                             old     new   delta
seedrng_main                                        1076    1050     -26

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2022-04-30 15:38:44 +02:00
..
2020-08-13 17:12:56 +02:00
2021-06-16 17:00:56 +02:00
2021-06-14 20:47:20 +02:00
2020-08-13 17:12:56 +02:00
2018-12-28 03:20:17 +01:00
2020-08-13 17:12:56 +02:00
2020-08-13 17:12:56 +02:00
2021-10-10 14:32:05 +02:00
2020-08-13 17:12:56 +02:00
2021-06-13 03:51:55 +02:00
2020-08-13 17:12:56 +02:00
2021-09-16 01:09:32 +02:00
2021-06-17 13:45:13 +02:00
2018-12-28 03:20:17 +01:00
2021-10-08 14:30:50 +02:00
2020-08-13 17:12:56 +02:00
2018-12-28 03:20:17 +01:00
2021-06-13 03:51:55 +02:00
2020-08-13 17:12:56 +02:00
2018-12-28 03:20:17 +01:00
2021-06-13 03:51:55 +02:00
2021-06-15 10:00:18 +02:00
2021-08-22 00:08:18 +02:00
2018-12-28 03:20:17 +01:00
2022-04-30 15:38:44 +02:00
2020-08-13 17:12:56 +02:00
2020-12-18 04:12:51 +01:00
2018-12-28 03:20:17 +01:00
2020-08-13 17:12:56 +02:00
2020-12-18 04:12:51 +01:00
2018-12-28 03:20:17 +01:00