Hi: I am doing a research on D2TCP(http://dl.acm.org/citation.cfm?id=2342388), I just want to implement it into the linux kernel. When calculating the penalty function, it is p = a^d, where 0< a < 1 and 0< d < 1. Since the kernel only offers integer, so in my code, so I let a multiply 2^10. But I have no idea of calculating a^d when 0< d < 1. May be I want a approximate algorithm or other methods. Can you help me ? thanks~ ------------------ ?????? ???? ---------- HanZhang School of Computer Science Tsinghua University, Beijing, 100084, P.R.CHINA Mobile: +86 156-526-59782 E-mail: zhang...@csnet1.cs.tsinghua.edu.cn
------------------ ???????? ------------------ ??????: "Andrey Zonov";<z...@freebsd.org>; ????????: 2014??6??20??(??????) ????3:04 ??????: "????"<zganghan...@foxmail.com>; "freebsd-net"<freebsd-net@freebsd.org>; ????: Re: pow function in kernel space There is no floating point types in kernel, so there is no pow() in kernel. On 6/19/14, 5:40 AM, ???? wrote: > how can I implement, in an efficient, way the pow() function in kernel space > ? Is there any function I can use o r how I can evaluate pow function in > kernel model? > > Thanks! > > > ------------------ > > ?????? > > ???? > > > > ---------- > > HanZhang > -- Andrey Zonov _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"