the linux kernel has a decent sqrt implementation (see the lib subdirectory in the kernel tree for it) Among other places it's used in the memory allocator. I would hope it would be suitable for codel. -- Dave Täht SKYPE: davetaht US Tel: 1-239-829-5608 http://www.bufferbloat.net