lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 25 Nov 2011 13:08:08 +0100
From:	Jiri Slaby <jirislaby@...il.com>
To:	Nuno Santos <nsantos@...gma.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: Floating point usage inside kernel

On 11/25/2011 12:14 PM, Nuno Santos wrote:
> Doing a grep -r kernel_fpu_begin * on kernel source dir I can find
> several references to this functions but not them is included in the
> include dir. Which include do I need to have this functions found in
> compile time?

It is defined in arch specific includes. For x86 in asm/i387.h (in
arch/x86/include).

> Am I even sailing in the right direction?

You should generally not use that anyway. It's not portable and disables
preemption.

Can't you do the computations in userspace? And why it cannot be
switched to integer types -- what algorithm is that? Some math function?

reagards,
-- 
js
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ