Welcome to mirror list, hosted at ThFree Co, Russian Federation.

signbitl.c « math « mingwex « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8b7bca5b34d50f110fa9545ce74a4ef19f89419f (plain)
1
2
3
4
5
6
7
8
9
10
11
#define __FP_SIGNBIT  0x0200

int __signbitl (long double x) {
  unsigned short sw;
  __asm__ ("fxam; fstsw %%ax;"
	   : "=a" (sw)
	   : "t" (x) );
  return (sw & __FP_SIGNBIT) != 0;
}

int __attribute__ ((alias ("__signbitl"))) signbitl (long double);