Welcome, Guest. Please login or register.

Author Topic: Bogomips in AmigaOne Linux  (Read 4180 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline naTmeg

  • Newbie
  • *
  • Join Date: Jan 2003
  • Posts: 3
    • Show all replies
    • http://member.ycn.com/~hausrup
Re: Bogomips in AmigaOne Linux
« on: January 09, 2003, 04:07:32 PM »
this is done on the mos-native version of amigamark.
i dunno why it get 1200 bogomips on linux.. :)
anyway..
 

Offline naTmeg

  • Newbie
  • *
  • Join Date: Jan 2003
  • Posts: 3
    • Show all replies
    • http://member.ycn.com/~hausrup
Re: Bogomips in AmigaOne Linux
« Reply #1 on: January 09, 2003, 08:24:31 PM »
to be exact here the routines used in the two version.
its a assembler code build-in in the c-source.
here the functions:


m68k:

static void delay(ULONG loops)
{
   __asm__ __volatile__ ("\n\tmovel %0,%/d0\n1:\tsubql #1,%/d0\n\t"
   "bpls 1b\n"
               : /*no outputs*/
               : "g" (loops)
               : "d0");

}


ppc:

static void delay(ULONG loops)
{
   __asm volatile ("cmpwi 0,%0,0\n\t"
                   "mtctr %0\n\t"
                   "beqlr\n\t"
                   ".loop: bdnz .loop"
                   :
                   : "r" (loops)
                   : "cc");
}


hope this is clear now :)

naTmeg,