aboutsummaryrefslogtreecommitdiffstats
path: root/langs/bn
Commit message (Expand)AuthorAgeFilesLines
...
* added Sixth General Assembly to the timeline pagefilip2016-06-291-40/+45
* sync translations for common footerfilip2016-06-282-97/+50
* typo fixfilip2016-05-201-1/+1
* adding signature links + refresh i19nfilip2016-05-191-65/+86
* Add Bengali translationYuri Chornoivan2016-05-086-92/+97
* Add Bengali translationYuri Chornoivan2016-05-075-25/+27
* Add Bengali translationYuri Chornoivan2016-05-0526-0/+5983
ption>
path: root/mdk-stage1/dietlibc/lib/__isinf.c
blob: 359bd27097d50b121d6ea0363f3aff414c2c966a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <math.h>

int isinf(double d) {
  unsigned long long *x=(unsigned long long *)&d;
  return (*x==0x7FF0000000000000ll?1:*x==0xFFF0000000000000?-1:0);
}
int __isinf(double d) __attribute__((alias("isinf")));

#if 0
TestFromIeeeExtended("7FFF0000000000000000");   /* +infinity */
TestFromIeeeExtended("FFFF0000000000000000");   /* -infinity */
TestFromIeeeExtended("7FFF8001000000000000");   /* Quiet NaN(1) */
TestFromIeeeExtended("7FFF0001000000000000");   /* Signalling NaN(1) */
TestFromIeeeExtended("3FFFFEDCBA9876543210");   /* accuracy test */
#endif