summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_attr_setstack.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-09-22 21:46:47 +0000
committerpeter <peter@FreeBSD.org>2003-09-22 21:46:47 +0000
commit9cd1883cc6b92fce290a70a6ce3787cac3ef1286 (patch)
tree8a30e71a727161af57a328e08b3a0284f533986b /lib/libpthread/thread/thr_attr_setstack.c
parentb4cfe6d4c8e939571c285264ed4d1caa4fef0f1b (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud