From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 28 17:02:28 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EE541065672 for ; Sat, 28 Jun 2008 17:02:28 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1CF8FC16 for ; Sat, 28 Jun 2008 17:02:28 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so993704rvf.43 for ; Sat, 28 Jun 2008 10:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=gjrPEhXK2gM2GBD3HfE5ppfhrTiyb/aXdoPl4igXVsQ=; b=MhMDv/ccXj8iD4fW9w+MEt2LvK58G+pAp7uNxeOtDJu1iQ9E+qohxUQtqqeKdtpf1d G8mEcN1cIRR6wlNeGiiXlbPTnUEbIzePLmKusMApCnBCN+UswyZ0cpUUrxIpKfsKmzUa pofoDZiGxub9StU7Xmh6xVu2Er0bSD1HWId0g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=cc/6tEafdQ712wlmkfDH7mcfjqOKHd/E2z1UMSAUvxxvwxgLDsucCkcJlChcV+rM1K 3uvazmEM4wK4nGpwYqh1Y/3eu3bug+F2D4/NQJLCmLlkpkdmOaPgE1AWFtYBPgM4oTvM X9xBorR071Dk99EjfgsRaN38NM+ke03QPB2Ic= Received: by 10.141.197.14 with SMTP id z14mr1524632rvp.283.1214670994633; Sat, 28 Jun 2008 09:36:34 -0700 (PDT) Received: by 10.141.159.2 with HTTP; Sat, 28 Jun 2008 09:36:34 -0700 (PDT) Message-ID: <9bbcef730806280936y1e669a91t2817ba7ca1de22f3@mail.gmail.com> Date: Sat, 28 Jun 2008 18:36:34 +0200 From: "Ivan Voras" Sender: ivoras@gmail.com To: hackers@freebsd.org In-Reply-To: <9bbcef730806280643h7c77d9bbo644a42752e1f59a5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9bbcef730806280643h7c77d9bbo644a42752e1f59a5@mail.gmail.com> X-Google-Sender-Auth: 4511d6e2c1369978 Cc: Subject: Software floating point library? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jun 2008 17:02:28 -0000 Does anyone know of a simple, BSD (or compatible) licensed software math library that emulates floating point numbers? Ideally, it should be a single .c file library that implements basic operations (+, -, *, /, negation, comparisons, convert to/from machine integers and strings), that uses a standard C type (int or long long) to store the value, and is usable in the kernel. Alternatively, how about a fixed-point library with the same properties? (I know it's easy to do, but don't want to reinvent the wheel again if I don't have to). Please disregard my earlier message on this subject, if you received it.