File: std.h

package info (click to toggle)
newlib 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 100,084 kB
  • sloc: ansic: 570,686; makefile: 61,473; asm: 47,698; sh: 12,008; perl: 2,731; cpp: 1,064; lisp: 720; python: 559; exp: 350; yacc: 315; xml: 39; awk: 25
file content (27 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <limits.h>
#include <math.h>
#ifndef CYGNUS_NEC
#include <ctype.h>
#endif

#define Ise(c)		((c == 'e') || (c == 'E') || (c == 'd') || (c == 'D'))
#define Isdigit(c)	((c <= '9') && (c >= '0'))
#define Isspace(c)	((c == ' ') || (c == '\t') || (c=='\n') || (c=='\v') \
                         || (c == '\r') || (c == '\f'))
#define Issign(c)	((c == '-') || (c == '+'))
#define Val(c)		((c - '0'))

#define MAXE  308
#define MINE  (-308)

/* flags */
#define SIGN	0x01
#define ESIGN	0x02
#define DECP	0x04

int    		__ten_mul(double *acc, int digit);
double		__adjust(struct _reent *ptr, double *acc, int dexp, int sign);
double		__exp10(unsigned x);