summaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c
diff options
context:
space:
mode:
authorIsmael Luceno2021-09-29 13:41:33 +0200
committerDenys Vlasenko2021-10-07 16:40:37 +0200
commit421c8767ba4ebf02fadc056026033e8feaf1a470 (patch)
tree9ff8aa82e3096cddc9883babd10a3a23ca8ef59c /miscutils/makedevs.c
parent0084c44799f4735e2e8a0d92381edc77a4c9d77f (diff)
downloadbusybox-421c8767ba4ebf02fadc056026033e8feaf1a470.zip
busybox-421c8767ba4ebf02fadc056026033e8feaf1a470.tar.gz
find: Unify time comparisons
Split the common part into a function, to be reused. The tail call is optimized, meaning now mmin/mtime just prepare arguments and jump into the common code, thus near zero overhead. This reduces code size slightly, e.g. on x86_64: text data bss dec hex filename 4806 0 0 4806 12c6 findutils/find.o.orig 4782 0 0 4782 12ae findutils/find.o Of course, the savings are even greater when implementing atime/ctime variants. Signed-off-by: Ismael Luceno <ismael@iodev.co.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/makedevs.c')
0 files changed, 0 insertions, 0 deletions