Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Device / test.c
blobf16b4c3963cce99f537b089548c3b40d642439fc
2 //#include "addroutines.h"
4 extern long long int c, d, e, f;
5 extern int i, j;
7 //long long
8 //test( ADDARGS )
9 //{
10 // return Samples + ScaleLeft + ScaleRight + (int) StartPointLeft + (int) StartPointRight
11 // + (int) Src + (int) Dst + FirstOffsetI + Add + (int) Offset + (int) StopAtZero;
12 //}
14 long long
15 test2( long long* offset, long long add, unsigned long samples )
17 *offset += add * samples;
18 return offset;
21 int
22 compare( int a, int b )
24 return( a < 0 && b >= 0 || a > 0 && b <= 0 );
27 int
28 main( void )
30 return test( 0x00000, 0x10000, 0x20000, 0x30000, 0x40000, 0x50000,
31 0x60000, 0x70000, 0x800808000, 0x90000, 0x1000 );
34 /* m68k:
36 4(sp) long 0x00000000 Samples
37 8(sp) long 0x00010000 ScaleLeft
38 12(sp) long 0x00020000 ScaleRight
39 16(sp) long 0x00030000 StartPointLeft
40 20(sp) long 0x00040000 StartPointRight
41 24(sp) long 0x00050000 Src
42 28(sp) long 0x00060000 Dst
43 32(sp) long 0x00070000 FirstOffsetI
44 36(sp) long long 0x0000000800808000 Add
45 44(sp) long 0x00090000 Offset
46 50(sp) word 0x1000 StopAtZero
48 ** ppc
50 8(r1) 0x00000008 Add
51 12(r1) 0x00808000
52 16(r1) 0x00090000 Offset
53 20(r1) word 0x1000 StopAtZero
54 r3 long 0x00000000 Samples
55 r4 long 0x00010000 ScaleLeft
56 r5 long 0x00020000 ScaleRight
57 r6 long 0x00030000 StartPointLeft
58 r7 long 0x00040000 StartPointRight
59 r8 long 0x00050000 Src
60 r9 long 0x00060000 Dst
61 r10 long 0x00070000 FirstOffsetI