OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [machine/] [spu/] [vsprintf.c] - Blame information for rev 194

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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