aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/machine/powerpc/machine/stdlib.h
blob: ea597102b9ed671aed1aa28ab30ed27c07549769 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef	_MACHSTDLIB_H_
#define	_MACHSTDLIB_H_

#ifndef __STRICT_ANSI__

# if defined(__ALTIVEC__)

void *_EXFUN(vec_calloc,(size_t __nmemb, size_t __size));
void *_EXFUN(_vec_calloc_r,(struct _reent *, size_t __nmemb, size_t __size));
void   _EXFUN(vec_free,(void *));
#define _vec_freer _freer
void *_EXFUN(vec_malloc,(size_t __size));
#define _vec_mallocr _memalign_r
void *_EXFUN(vec_realloc,(void *__r, size_t __size));
void *_EXFUN(_vec_realloc_r,(struct _reent *, void *__r, size_t __size));

# endif /* __ALTIVEC__ */

# if defined(__SPE__)

#define __need_inttypes
#include <sys/types.h>

#ifdef __cplusplus
extern "C" {
#endif
__int16_t   _EXFUN(atosfix16,(const char *__str));
__int16_t   _EXFUN(_atosfix16_r,(struct _reent *, const char *__str));
__int32_t   _EXFUN(atosfix32,(const char *__str));
__int32_t   _EXFUN(_atosfix32_r,(struct _reent *, const char *__str));
__int64_t   _EXFUN(atosfix64,(const char *__str));
__int64_t   _EXFUN(_atosfix64_r,(struct _reent *, const char *__str));

__uint16_t _EXFUN(atoufix16,(const char *__str));
__uint16_t _EXFUN(_atoufix16_r,(struct _reent *, const char *__str));
__uint32_t _EXFUN(atoufix32,(const char *__str));
__uint32_t _EXFUN(_atoufix32_r,(struct _reent *, const char *__str));
__uint64_t _EXFUN(atoufix64,(const char *__str));
__uint64_t _EXFUN(_atoufix64_r,(struct _reent *, const char *__str));

__int16_t   _EXFUN(strtosfix16,(const char *__str, char **__endptr));
__int16_t   _EXFUN(_strtosfix16_r,(struct _reent *, const char *__str, 
                 char **__endptr));
__int32_t   _EXFUN(strtosfix32,(const char *__str, char **__endptr));
__int32_t   _EXFUN(_strtosfix32_r,(struct _reent *, const char *__str, 
                 char **__endptr));
__int64_t   _EXFUN(strtosfix64,(const char *__str, char **__endptr));
__int64_t   _EXFUN(_strtosfix64_r,(struct _reent *, const char *__str, 
                 char **__endptr));

__uint16_t _EXFUN(strtoufix16,(const char *__str, char **__endptr));
__uint16_t _EXFUN(_strtoufix16_r,(struct _reent *, const char *__str, 
                 char **__endptr));
__uint32_t _EXFUN(strtoufix32,(const char *__str, char **__endptr));
__uint32_t _EXFUN(_strtoufix32_r,(struct _reent *, const char *__str, 
                 char **__endptr));
__uint64_t _EXFUN(strtoufix64,(const char *__str, char **__endptr));
__uint64_t _EXFUN(_strtoufix64_r,(struct _reent *, const char *__str, 
                 char **__endptr));
#ifdef __cplusplus
}
#endif

# endif /* __SPE__ */

#endif /* !__STRICT_ANSI__ */


#endif	/* _MACHSTDLIB_H_ */