OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [machine/] [spu/] [vprintf.c] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#include <_ansi.h>
2
#include <stdio.h>
3
 
4
#include "c99ppe.h"
5
 
6
#ifdef _HAVE_STDC
7
#include <stdarg.h>
8
#else
9
#include <varargs.h>
10
#endif
11
 
12
#ifdef INTEGER_ONLY
13
#  define vprintf viprintf
14
#endif
15
 
16
typedef struct
17
{
18
  _CONST char* fmt;
19
  unsigned int pad0[ 3 ];
20
  va_list ap;
21
} c99_vprintf_t;
22
 
23
#ifndef _REENT_ONLY
24
 
25
int
26
_DEFUN (vprintf, (fmt, ap),
27
     _CONST char *fmt _AND
28
     va_list ap)
29
{
30
  c99_vprintf_t args;
31
 
32
  CHECK_STD_INIT(_REENT);
33
 
34
  args.fmt = fmt;
35
  va_copy(args.ap,ap);
36
 
37
  return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
38
}
39
 
40
#endif /* ! _REENT_ONLY */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.