Changeset af22f158 in mainline for test/fpu/fpu0/test.c


Ignore:
Timestamp:
2005-05-19T20:29:08Z (20 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c01bd280
Parents:
bc4a49f
Message:

Set TS flag on system startup.
Some bugs in FPU context switching seem to persist.
Optimalization on IA-32 disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/fpu/fpu0/test.c

    rbc4a49f raf22f158  
    4545{
    4646        int i;
    47         while(1) {
     47        while(1)
     48        {
    4849                double e,d,le,f;
    4950                le=-1;
    5051                e=0;
    5152                f=1;
    52                 for(i=0,d=1;e!=le;d*=f,f+=1,i++) {
     53                for(i=0,d=1;e!=le;d*=f,f+=1,i++)
     54                {
    5355                        le=e;
    5456                        e=e+1/d;
    55                         if (i>1000000) {
    56                                 printf("tid%d: e LOOPING\n", THREAD->tid);
     57                        if (i>20000000)
     58                        {
     59//                              printf("tid%d: e LOOPING\n", THREAD->tid);
     60                                putchar('!');
    5761                                i = 0;
    5862                        }
     63                       
    5964                }
    6065   
     
    7580                thread_ready(t);
    7681        }
     82       
     83        while(1);
    7784
    7885}
Note: See TracChangeset for help on using the changeset viewer.