From owner-freebsd-net@FreeBSD.ORG Thu Jun 19 19:04:51 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EAC8BE79 for ; Thu, 19 Jun 2014 19:04:51 +0000 (UTC) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B9B1C2045 for ; Thu, 19 Jun 2014 19:04:51 +0000 (UTC) Received: by mail-pd0-f175.google.com with SMTP id v10so2105776pde.20 for ; Thu, 19 Jun 2014 12:04:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type; bh=1VwGTqa4kLB5h7xHLYD9eo4ZJNB4wrYUYhVKstMholM=; b=ibb8PM+haCqg7GdSGlooc/HrszKez2VPMKYWjXavEemd7FxlpNZ3CrHJoFh2bw9gWw 7KYdqTUEiUAavc6n0olMbwViXvtRGmEGdqqvKwOSODCuy0Fyup/xBVpTJ1H2XW7BMrRl MynyoS7udz5CuUtOlJYojrQUbcmSqLCyrGJNEpjYnH5NM+8NDC7sqvjJjCVSFUhenSsi myNLrKLtxUYR2SfHUeduZ7LrWScKJ5FttXT4xcZKw8KysoG9TaZgr63UuaGJG4xCqHbu OJc0miv46ojnF5W0Uq9iCeGumQ6pBmcfuZUJAooiF+H+8Y5awSjNsZPF4f6symMynyKZ pQuw== X-Gm-Message-State: ALoCoQkIOaM3hIyZ5m9/AcrrYE+r6YrCt2H14d8r2rOJeO9RSq1MrdB41rS6kQ5v3Zq8XLxl/K0n X-Received: by 10.69.25.105 with SMTP id ip9mr7929174pbd.145.1403204685607; Thu, 19 Jun 2014 12:04:45 -0700 (PDT) Received: from zont-osx.local (c-69-181-251-166.hsd1.ca.comcast.net. [69.181.251.166]) by mx.google.com with ESMTPSA id og3sm9809858pbc.48.2014.06.19.12.04.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Jun 2014 12:04:44 -0700 (PDT) Sender: Andrey Zonov Message-ID: <53A33448.9060909@FreeBSD.org> Date: Thu, 19 Jun 2014 12:04:40 -0700 From: Andrey Zonov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: =?gb18030?Q?=D5=C5=EA=CF?= , freebsd-net Subject: Re: pow function in kernel space References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3wgIVNaK9MV0pm5avAlQTXbwjp8uPhndb" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 19:04:52 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3wgIVNaK9MV0pm5avAlQTXbwjp8uPhndb Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable There is no floating point types in kernel, so there is no pow() in kerne= l. On 6/19/14, 5:40 AM, =D5=C5=EA=CF 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 funct= ion in kernel model? > =20 > Thanks! > =20 > =20 > ------------------ > =20 > =D7=A3=BA=C3=A3=AC > =20 > =D5=C5=EA=CF > =20 > =20 > =20 > ----------=20 > =20 > HanZhang > =20 --=20 Andrey Zonov --3wgIVNaK9MV0pm5avAlQTXbwjp8uPhndb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJTozRLAAoJEBWLemxX/CvTnokIAJMYsr/hij5/bqTNT+KYsAZQ JlrRIgnkZnOr+esLZFF/9B98tvlftrUUFHUAF+wzWvgUHTOLNvMnNtJD3hG44XhR aQe6lETIk8wIuQFJmq4rtp2MHe3Y7WBBqHZS8mKlhirJstlNdtLjoLhPuMenNftr JAA9QBEKpf6Sjg9rulWcFHr/TXhFvDlsrKdo73vWzL+ht3sRkFg7g7nWVCUUX211 ETOVQr++CosrNFtO1P+9POvn+fc+xN0mZ40hfZd0IISiyof7sdu7x/eL9s5nepBL OuKw7rwy1DoenX2sCFQTVEBl9L2gNbqZKWVfRm6yx7yrWQjcVL9/1bKbcEOXp1Q= =Xs8Z -----END PGP SIGNATURE----- --3wgIVNaK9MV0pm5avAlQTXbwjp8uPhndb--