diff options
author | peter <peter@FreeBSD.org> | 2003-09-22 21:46:47 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-09-22 21:46:47 +0000 |
commit | 9cd1883cc6b92fce290a70a6ce3787cac3ef1286 (patch) | |
tree | 8a30e71a727161af57a328e08b3a0284f533986b /lib/libpthread/thread/thr_attr_setstack.c | |
parent | b4cfe6d4c8e939571c285264ed4d1caa4fef0f1b (diff) | |
download | FreeBSD-src-9cd1883cc6b92fce290a70a6ce3787cac3ef1286.zip FreeBSD-src-9cd1883cc6b92fce290a70a6ce3787cac3ef1286.tar.gz |
Microoptimization to allow the compiler to evaluate ntohl() etc on
known constants at compile time rather than at run time. We have a number
of nasty hacks around the place to cache ntohl() of constants (eg: nfs).
This change allows the compiler to compile-time evaluate ntohl(1) as
0x01000000 rather than having to emit assembler code to do it. This
has other smaller flow-on effects because the compiler can see that
ntohl(constant) itself has a constant value now and can propagate the
compile time evaluation.
Obtained from: Ideas from NetBSD and Linux, and some code from NetBSD
Diffstat (limited to 'lib/libpthread/thread/thr_attr_setstack.c')
0 files changed, 0 insertions, 0 deletions