> From: Peter Zijlstra <peterz@infradead.org>Thanks Peter for noticing :-) Sorry, I should have it explained before. Really sorry for that. Here are they... 0 It is better because o it uses only one loop instead of two o contains no division operator (older version has two) which are surely comparatively slow task in computer 0 Currently find . -name '*.[ch]' | xargs grep int_sqrt gives me this .... ./fs/nfs/write.c: nfs_congestion_kb = (16*int_sqrt(totalram_pages)) << (PAGE_SHIFT-10); ./drivers/video/fbmon.c: h_period = int_sqrt(h_period); ./mm/page_alloc.c: min_free_kbytes = int_sqrt(lowmem_kbytes * 16); ./mm/oom_kill.c: s = int_sqrt(cpu_time); ./mm/oom_kill.c: s = int_sqrt(int_sqrt(run_time)); .... So this function works in critical computing sections like frame-buffer, paging. Which means betterment of this function should not be ignored. Besides, if there is a better way to do things then why should not we do that ? Anyways thanks :-) --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Heiko Carstens | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH iproute2] Re: HTB accuracy for high speed |
