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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [testsuite/] [libgloss.all/] [float.c] - Blame information for rev 421

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

Line No. Rev Author Line
1 148 jeremybenn
#include <stdio.h>
2
 
3
main()
4
{
5
  float a,b,c;
6
 
7
  a = 0.11;
8
  b = 3.12;
9
  c = a+b;
10
 
11
  printf ("Print float, result with 'f' = %f\n", c);
12
  printf ("Print float, result with 'e' = %e\n", c);
13
  printf ("Print float, result with 'E' = %E\n", c);
14
  printf ("Print float, result with 'g' = %g\n", c);
15
  printf ("Print float, result with 'G' = %G\n", c);
16
 
17
  pass ("float");
18
  fflush (stdout);
19
}
20
 

powered by: WebSVN 2.1.0

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