Date: Fri, 20 Jun 2014 06:06:25 +1000 From: Peter Jeremy <peter@rulingia.com> To: =?utf-8?B?5byg5pmX?= <zganghanhan@foxmail.com> Cc: freebsd-net <freebsd-net@freebsd.org> Subject: Re: pow function in kernel space Message-ID: <20140619200625.GB3631@server.rulingia.com> In-Reply-To: <tencent_34C23E3A7E7FDFEA644A3392@qq.com> References: <mailman.75.1403092802.14182.freebsd-net@freebsd.org> <tencent_34C23E3A7E7FDFEA644A3392@qq.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On 2014-Jun-19 20:40:48 +0800, 张晗 <zganghanhan@foxmail.com> 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? Since the kernel only offers integer arithmetic, one approach would be square and multiply. What are you trying to do? Maybe we can offer an alternative to pow(3). -- Peter Jeremy [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQJ8BAEBCgBmBQJTo0LBXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs09oIP/1QbHPJ7urM3D6SkHbP74mBb 6Pg6vDGcnjy7QbFxFe11+qjfkIKdd3N2M5VbF+5QqI2nA1hCcGEsd6E83SkhE3v9 SqrgS+sq/JZ7/pgeYPEVqtJWucpDkYmkItNV3krZlHVGF6GK7j4yEsCzm0dMOo65 jJuFUv2pKJAzGRcKNPCWUYMQ8F80EjkGVzo4fm+8MsBG8c0Xy/SaRDCJtonBTIHj jEAcGyh8TqWgs8dX1tsQzLGT/tuzkF0eqO5p5RZfW/CQwGSjlz/bw/12i+mBRlXm rzVDSvFSI0dBczJcRoviDzbPU9UXDprFev2pfOb5TL9GTinkfJqL+IjaTwp2Fcu5 PkmlN2Cypa4jl1igXeiVNqjuuRBTmyJ2jpywn8UtO/HD1AX6dUJ8RuOxXB1IXpau HwPXcdT1Iq2u5QW1U3Q4yWl+VPm0yTYDIMZL7Bfji+xyRvLIcznbNEIDOzncJg5g SToMTQGrOu7paAy6s7cDfZ/T/HKeoP4fNbldBPhG+yBzWKIjt+cnmebuSnS1mi66 0FTHXfqhQdQ6XHr7Jn1wqnCUThsMBHhzHCruuNsyJVMo5MQw13Tq97TbHSXTsrtW 8SJqxQNnZMhSgMS57U9Y/PViK2/O/C9IaIWuDancpm/0hPVPyffhlMNuIl7hr+pu wmdAsp6U2XlvVSrn2mJ4 =4POu -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140619200625.GB3631>
