xref: /openbsd-src/lib/libc/arch/powerpc64/gen/nan.c (revision e11d2af5d4ec4cbb24b31f0bfebeb108824be235)
1*e11d2af5Sdrahn /*	$OpenBSD: nan.c,v 1.1 2020/06/25 02:03:55 drahn Exp $	*/
2*e11d2af5Sdrahn 
3*e11d2af5Sdrahn /* Written by Martynas Venckus.  Public Domain. */
4*e11d2af5Sdrahn 
5*e11d2af5Sdrahn #include <math.h>
6*e11d2af5Sdrahn 
7*e11d2af5Sdrahn /* bytes for qNaN on a powerpc (IEEE single format) */
8*e11d2af5Sdrahn char __nan[] __attribute__((__aligned__(sizeof(float)))) =
9*e11d2af5Sdrahn 					{ 0x7f, 0xc0, 0, 0 };
10