Artifact
21b084c821137fab1f4f06ee8a9229efdaac9400:
0000: 23 69 66 6e 64 65 66 20 5f 61 76 63 61 6c 6c 5f #ifndef _avcall_
0010: 72 73 36 30 30 30 5f 63 09 09 09 09 2f 2a 2d 2a rs6000_c..../*-*
0020: 2d 20 43 20 2d 2a 2d 2a 2f 0a 23 64 65 66 69 6e - C -*-*/.#defin
0030: 65 20 5f 61 76 63 61 6c 6c 5f 72 73 36 30 30 30 e _avcall_rs6000
0040: 5f 63 0a 2f 2a 2a 0a 20 20 43 6f 70 79 72 69 67 _c./**. Copyrig
0050: 68 74 20 31 39 39 33 20 42 69 6c 6c 20 54 72 69 ht 1993 Bill Tri
0060: 67 67 73 2c 20 3c 42 69 6c 6c 2e 54 72 69 67 67 ggs, <Bill.Trigg
0070: 73 40 69 6e 72 69 61 6c 70 65 73 2e 66 72 3e 0a s@inrialpes.fr>.
0080: 20 20 43 6f 70 79 72 69 67 68 74 20 31 39 39 35 Copyright 1995
0090: 2d 31 39 39 39 20 42 72 75 6e 6f 20 48 61 69 62 -1999 Bruno Haib
00a0: 6c 65 2c 20 3c 62 72 75 6e 6f 40 63 6c 69 73 70 le, <bruno@clisp
00b0: 2e 6f 72 67 3e 0a 20 20 43 6f 70 79 72 69 67 68 .org>. Copyrigh
00c0: 74 20 32 30 30 30 20 41 64 61 6d 20 46 65 64 6f t 2000 Adam Fedo
00d0: 72 2c 20 3c 66 65 64 6f 72 40 67 6e 75 2e 6f 72 r, <fedor@gnu.or
00e0: 67 3e 0a 20 20 43 6f 70 79 72 69 67 68 74 20 32 g>. Copyright 2
00f0: 30 30 34 20 50 61 75 6c 20 47 75 79 6f 74 2c 20 004 Paul Guyot,
0100: 3c 70 67 75 79 6f 74 40 6b 61 6c 6c 69 73 79 73 <pguyot@kallisys
0110: 2e 6e 65 74 3e 0a 0a 20 20 54 68 69 73 20 69 73 .net>.. This is
0120: 20 66 72 65 65 20 73 6f 66 74 77 61 72 65 20 64 free software d
0130: 69 73 74 72 69 62 75 74 65 64 20 75 6e 64 65 72 istributed under
0140: 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c the GNU General
0150: 20 50 75 62 6c 69 63 0a 20 20 4c 69 63 65 6e 63 Public. Licenc
0160: 65 20 64 65 73 63 72 69 62 65 64 20 69 6e 20 74 e described in t
0170: 68 65 20 66 69 6c 65 20 43 4f 50 59 49 4e 47 2e he file COPYING.
0180: 20 43 6f 6e 74 61 63 74 20 74 68 65 20 61 75 74 Contact the aut
0190: 68 6f 72 20 69 66 0a 20 20 79 6f 75 20 64 6f 6e hor if. you don
01a0: 27 74 20 68 61 76 65 20 74 68 69 73 20 6f 72 20 't have this or
01b0: 63 61 6e 27 74 20 6c 69 76 65 20 77 69 74 68 20 can't live with
01c0: 69 74 2e 20 54 68 65 72 65 20 69 73 20 41 42 53 it. There is ABS
01d0: 4f 4c 55 54 45 4c 59 0a 20 20 4e 4f 20 57 41 52 OLUTELY. NO WAR
01e0: 52 41 4e 54 59 2c 20 65 78 70 6c 69 63 69 74 20 RANTY, explicit
01f0: 6f 72 20 69 6d 70 6c 69 65 64 2c 20 6f 6e 20 74 or implied, on t
0200: 68 69 73 20 73 6f 66 74 77 61 72 65 2e 0a 2a 2a his software..**
0210: 2f 0a 2f 2a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d /./*------------
0220: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0230: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0240: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0250: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 20 20 21 21 21 ----------. !!!
0260: 20 54 48 49 53 20 52 4f 55 54 49 4e 45 20 4d 55 THIS ROUTINE MU
0270: 53 54 20 42 45 20 43 4f 4d 50 49 4c 45 44 20 67 ST BE COMPILED g
0280: 63 63 20 2d 4f 20 21 21 21 0a 0a 20 20 46 6f 72 cc -O !!!.. For
0290: 65 69 67 6e 20 66 75 6e 63 74 69 6f 6e 20 69 6e eign function in
02a0: 74 65 72 66 61 63 65 20 66 6f 72 20 61 6e 20 49 terface for an I
02b0: 42 4d 20 52 53 2f 36 30 30 30 20 77 69 74 68 20 BM RS/6000 with
02c0: 67 63 63 0a 0a 20 20 54 68 69 73 20 63 61 6c 6c gcc.. This call
02d0: 73 20 61 20 43 20 66 75 6e 63 74 69 6f 6e 20 77 s a C function w
02e0: 69 74 68 20 61 6e 20 61 72 67 75 6d 65 6e 74 20 ith an argument
02f0: 6c 69 73 74 20 62 75 69 6c 74 20 75 70 20 75 73 list built up us
0300: 69 6e 67 20 6d 61 63 72 6f 73 0a 20 20 64 65 66 ing macros. def
0310: 69 6e 65 64 20 69 6e 20 61 76 5f 63 61 6c 6c 2e ined in av_call.
0320: 68 2e 0a 0a 20 20 52 53 36 30 30 30 20 41 72 67 h... RS6000 Arg
0330: 75 6d 65 6e 74 20 50 61 73 73 69 6e 67 20 43 6f ument Passing Co
0340: 6e 76 65 6e 74 69 6f 6e 73 3a 0a 0a 20 20 41 6c nventions:.. Al
0350: 6c 20 61 72 67 75 6d 65 6e 74 73 2c 20 65 78 63 l arguments, exc
0360: 65 70 74 20 74 68 65 20 66 69 72 73 74 20 38 20 ept the first 8
0370: 77 6f 72 64 73 2c 20 61 72 65 20 70 61 73 73 65 words, are passe
0380: 64 20 6f 6e 20 74 68 65 20 73 74 61 63 6b 20 77 d on the stack w
0390: 69 74 68 0a 20 20 77 6f 72 64 20 61 6c 69 67 6e ith. word align
03a0: 6d 65 6e 74 2e 20 44 6f 75 62 6c 65 73 20 74 61 ment. Doubles ta
03b0: 6b 65 20 74 77 6f 20 77 6f 72 64 73 2e 20 54 68 ke two words. Th
03c0: 65 20 66 69 72 73 74 20 31 33 20 64 6f 75 62 6c e first 13 doubl
03d0: 65 73 20 61 6e 64 20 66 6c 6f 61 74 73 0a 20 20 es and floats.
03e0: 61 72 65 20 61 6c 73 6f 20 70 61 73 73 65 64 20 are also passed
03f0: 69 6e 20 66 6c 6f 61 74 69 6e 67 2d 70 6f 69 6e in floating-poin
0400: 74 2d 72 65 67 69 73 74 65 72 73 2e 0a 20 20 54 t-registers.. T
0410: 6f 20 72 65 74 75 72 6e 20 61 20 73 74 72 75 63 o return a struc
0420: 74 75 72 65 2c 20 74 68 65 20 63 61 6c 6c 65 64 ture, the called
0430: 20 66 75 6e 63 74 69 6f 6e 20 63 6f 70 69 65 73 function copies
0440: 20 74 68 65 20 76 61 6c 75 65 20 74 6f 20 73 70 the value to sp
0450: 61 63 65 0a 20 20 70 6f 69 6e 74 65 64 20 74 6f ace. pointed to
0460: 20 62 79 20 69 74 73 20 66 69 72 73 74 20 61 72 by its first ar
0470: 67 75 6d 65 6e 74 2c 20 61 6e 64 20 61 6c 6c 20 gument, and all
0480: 6f 74 68 65 72 20 61 72 67 75 6d 65 6e 74 73 20 other arguments
0490: 61 72 65 20 73 68 69 66 74 65 64 0a 20 20 64 6f are shifted. do
04a0: 77 6e 20 62 79 20 6f 6e 65 2e 0a 0a 20 20 44 69 wn by one... Di
04b0: 66 66 65 72 65 6e 63 65 73 20 62 65 74 77 65 65 fferences betwee
04c0: 6e 20 41 49 58 20 61 6e 64 20 53 79 73 56 2e 34 n AIX and SysV.4
04d0: 20 61 72 67 75 6d 65 6e 74 20 70 61 73 73 69 6e argument passin
04e0: 67 20 63 6f 6e 76 65 6e 74 69 6f 6e 73 3a 0a 20 g conventions:.
04f0: 20 2d 20 41 49 58 3a 20 74 68 65 20 66 69 72 73 - AIX: the firs
0500: 74 20 31 33 20 64 6f 75 62 6c 65 73 20 61 6e 64 t 13 doubles and
0510: 20 66 6c 6f 61 74 73 20 61 72 65 20 70 61 73 73 floats are pass
0520: 65 64 20 69 6e 20 46 50 20 72 65 67 69 73 74 65 ed in FP registe
0530: 72 73 2c 0a 20 20 20 20 20 20 20 20 20 61 6e 64 rs,. and
0540: 20 77 68 65 6e 20 74 68 65 79 20 64 6f 2c 20 74 when they do, t
0550: 68 65 72 65 20 69 73 20 73 74 69 6c 6c 20 72 6f here is still ro
0560: 6f 6d 20 61 6c 6c 6f 63 61 74 65 64 20 66 6f 72 om allocated for
0570: 20 74 68 65 6d 20 69 6e 20 74 68 65 0a 20 20 20 them in the.
0580: 20 20 20 20 20 20 61 72 67 75 6d 65 6e 74 20 73 argument s
0590: 65 71 75 65 6e 63 65 20 28 69 6e 74 65 67 65 72 equence (integer
05a0: 20 72 65 67 73 20 6f 72 20 73 74 61 63 6b 29 2e regs or stack).
05b0: 0a 20 20 20 20 53 79 73 56 2e 34 3a 20 74 68 65 . SysV.4: the
05c0: 20 66 69 72 73 74 20 38 20 64 6f 75 62 6c 65 73 first 8 doubles
05d0: 20 61 6e 64 20 66 6c 6f 61 74 73 20 61 72 65 20 and floats are
05e0: 70 61 73 73 65 64 20 69 6e 20 46 50 20 72 65 67 passed in FP reg
05f0: 69 73 74 65 72 73 2c 0a 20 20 20 20 20 20 20 20 isters,.
0600: 20 61 6e 64 20 6e 6f 20 72 6f 6f 6d 20 69 73 20 and no room is
0610: 61 6c 6c 6f 63 61 74 65 64 20 66 6f 72 20 74 68 allocated for th
0620: 65 6d 20 69 6e 20 74 68 65 20 61 72 67 75 6d 65 em in the argume
0630: 6e 74 20 73 65 71 75 65 6e 63 65 2e 0a 20 20 2d nt sequence.. -
0640: 20 41 49 58 3a 20 53 74 72 75 63 74 75 72 65 73 AIX: Structures
0650: 20 61 72 65 20 70 61 73 73 65 64 20 69 6e 20 74 are passed in t
0660: 68 65 20 61 72 67 75 6d 65 6e 74 20 73 65 71 75 he argument sequ
0670: 65 6e 63 65 2e 0a 20 20 20 20 53 79 73 56 2e 34 ence.. SysV.4
0680: 3a 20 53 74 72 75 63 74 75 72 65 73 20 61 72 65 : Structures are
0690: 20 70 61 73 73 65 64 20 62 79 20 72 65 66 65 72 passed by refer
06a0: 65 6e 63 65 3a 20 6f 6e 6c 79 20 61 20 70 6f 69 ence: only a poi
06b0: 6e 74 65 72 20 61 70 70 65 61 72 73 20 69 6e 0a nter appears in.
06c0: 20 20 20 20 20 20 20 20 20 74 68 65 20 61 72 67 the arg
06d0: 75 6d 65 6e 74 20 73 65 71 75 65 6e 63 65 2e 0a ument sequence..
06e0: 20 20 2d 20 41 49 58 3a 20 4c 6f 6e 67 20 6c 6f - AIX: Long lo
06f0: 6e 67 73 20 61 72 65 20 6f 6e 6c 79 20 77 6f 72 ngs are only wor
0700: 64 20 61 6c 69 67 6e 65 64 2e 0a 20 20 20 20 53 d aligned.. S
0710: 79 73 56 2e 34 3a 20 4c 6f 6e 67 20 6c 6f 6e 67 ysV.4: Long long
0720: 73 20 61 72 65 20 74 77 6f 2d 77 6f 72 64 20 61 s are two-word a
0730: 6c 69 67 6e 65 64 2c 20 62 6f 74 68 20 77 68 65 ligned, both whe
0740: 6e 20 70 61 73 73 65 64 20 69 6e 20 72 65 67 69 n passed in regi
0750: 73 74 65 72 73 0a 20 20 20 20 20 20 20 20 20 28 sters. (
0760: 70 61 69 72 73 3a 20 33 2f 34 2c 20 35 2f 36 2c pairs: 3/4, 5/6,
0770: 20 37 2f 38 2c 20 39 2f 31 30 29 20 61 6e 64 20 7/8, 9/10) and
0780: 77 68 65 6e 20 70 61 73 73 65 64 20 6f 6e 20 74 when passed on t
0790: 68 65 20 73 74 61 63 6b 2e 20 28 52 65 63 61 6c he stack. (Recal
07a0: 6c 0a 20 20 20 20 20 20 20 20 20 74 68 61 74 20 l. that
07b0: 74 68 65 20 73 74 61 63 6b 20 69 73 20 61 6c 77 the stack is alw
07c0: 61 79 73 20 38 2d 62 79 74 65 20 61 6c 69 67 6e ays 8-byte align
07d0: 65 64 29 2e 0a 0a 20 20 43 6f 6d 70 69 6c 65 20 ed)... Compile
07e0: 74 68 69 73 20 72 6f 75 74 69 6e 65 20 77 69 74 this routine wit
07f0: 68 20 67 63 63 20 2d 4f 20 28 6f 72 20 2d 4f 32 h gcc -O (or -O2
0800: 20 2d 66 6e 6f 2d 6f 6d 69 74 2d 66 72 61 6d 65 -fno-omit-frame
0810: 2d 70 6f 69 6e 74 65 72 20 6f 72 20 2d 67 20 2d -pointer or -g -
0820: 4f 29 0a 20 20 74 6f 20 67 65 74 20 74 68 65 20 O). to get the
0830: 72 69 67 68 74 20 72 65 67 69 73 74 65 72 20 76 right register v
0840: 61 72 69 61 62 6c 65 73 2e 20 46 6f 72 20 6f 74 ariables. For ot
0850: 68 65 72 20 63 6f 6d 70 69 6c 65 72 73 20 75 73 her compilers us
0860: 65 20 74 68 65 0a 20 20 70 72 65 2d 63 6f 6d 70 e the. pre-comp
0870: 69 6c 65 64 20 61 73 73 65 6d 62 6c 65 72 20 76 iled assembler v
0880: 65 72 73 69 6f 6e 2e 0a 20 20 2d 2d 2d 2d 2d 2d ersion.. ------
0890: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
08a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
08b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
08c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
08d0: 2a 2f 0a 23 69 6e 63 6c 75 64 65 20 22 61 76 63 */.#include "avc
08e0: 61 6c 6c 2e 68 2e 69 6e 22 0a 0a 23 69 66 64 65 all.h.in"..#ifde
08f0: 66 20 5f 5f 6c 69 6e 75 78 5f 5f 0a 23 64 65 66 f __linux__.#def
0900: 69 6e 65 20 53 54 41 43 4b 5f 4f 46 46 53 45 54 ine STACK_OFFSET
0910: 20 32 0a 23 65 6c 73 65 0a 23 64 65 66 69 6e 65 2.#else.#define
0920: 20 53 54 41 43 4b 5f 4f 46 46 53 45 54 20 31 34 STACK_OFFSET 14
0930: 0a 23 65 6e 64 69 66 0a 0a 23 64 65 66 69 6e 65 .#endif..#define
0940: 20 52 45 54 55 52 4e 28 54 59 50 45 2c 56 41 4c RETURN(TYPE,VAL
0950: 29 09 28 2a 28 54 59 50 45 2a 29 6c 2d 3e 72 61 ).(*(TYPE*)l->ra
0960: 64 64 72 20 3d 20 28 54 59 50 45 29 28 56 41 4c ddr = (TYPE)(VAL
0970: 29 29 0a 0a 72 65 67 69 73 74 65 72 20 64 6f 75 ))..register dou
0980: 62 6c 65 20 66 61 72 67 31 09 5f 5f 61 73 6d 5f ble farg1.__asm_
0990: 5f 28 22 66 72 31 22 29 3b 0a 72 65 67 69 73 74 _("fr1");.regist
09a0: 65 72 20 64 6f 75 62 6c 65 20 66 61 72 67 32 09 er double farg2.
09b0: 5f 5f 61 73 6d 5f 5f 28 22 66 72 32 22 29 3b 0a __asm__("fr2");.
09c0: 72 65 67 69 73 74 65 72 20 64 6f 75 62 6c 65 20 register double
09d0: 66 61 72 67 33 09 5f 5f 61 73 6d 5f 5f 28 22 66 farg3.__asm__("f
09e0: 72 33 22 29 3b 0a 72 65 67 69 73 74 65 72 20 64 r3");.register d
09f0: 6f 75 62 6c 65 20 66 61 72 67 34 09 5f 5f 61 73 ouble farg4.__as
0a00: 6d 5f 5f 28 22 66 72 34 22 29 3b 0a 72 65 67 69 m__("fr4");.regi
0a10: 73 74 65 72 20 64 6f 75 62 6c 65 20 66 61 72 67 ster double farg
0a20: 35 09 5f 5f 61 73 6d 5f 5f 28 22 66 72 35 22 29 5.__asm__("fr5")
0a30: 3b 0a 72 65 67 69 73 74 65 72 20 64 6f 75 62 6c ;.register doubl
0a40: 65 20 66 61 72 67 36 09 5f 5f 61 73 6d 5f 5f 28 e farg6.__asm__(
0a50: 22 66 72 36 22 29 3b 0a 72 65 67 69 73 74 65 72 "fr6");.register
0a60: 20 64 6f 75 62 6c 65 20 66 61 72 67 37 09 5f 5f double farg7.__
0a70: 61 73 6d 5f 5f 28 22 66 72 37 22 29 3b 0a 72 65 asm__("fr7");.re
0a80: 67 69 73 74 65 72 20 64 6f 75 62 6c 65 20 66 61 gister double fa
0a90: 72 67 38 09 5f 5f 61 73 6d 5f 5f 28 22 66 72 38 rg8.__asm__("fr8
0aa0: 22 29 3b 0a 72 65 67 69 73 74 65 72 20 64 6f 75 ");.register dou
0ab0: 62 6c 65 20 66 61 72 67 39 09 5f 5f 61 73 6d 5f ble farg9.__asm_
0ac0: 5f 28 22 66 72 39 22 29 3b 0a 72 65 67 69 73 74 _("fr9");.regist
0ad0: 65 72 20 64 6f 75 62 6c 65 20 66 61 72 67 31 30 er double farg10
0ae0: 09 5f 5f 61 73 6d 5f 5f 28 22 66 72 31 30 22 29 .__asm__("fr10")
0af0: 3b 0a 72 65 67 69 73 74 65 72 20 64 6f 75 62 6c ;.register doubl
0b00: 65 20 66 61 72 67 31 31 09 5f 5f 61 73 6d 5f 5f e farg11.__asm__
0b10: 28 22 66 72 31 31 22 29 3b 0a 72 65 67 69 73 74 ("fr11");.regist
0b20: 65 72 20 64 6f 75 62 6c 65 20 66 61 72 67 31 32 er double farg12
0b30: 09 5f 5f 61 73 6d 5f 5f 28 22 66 72 31 32 22 29 .__asm__("fr12")
0b40: 3b 0a 72 65 67 69 73 74 65 72 20 64 6f 75 62 6c ;.register doubl
0b50: 65 20 66 61 72 67 31 33 09 5f 5f 61 73 6d 5f 5f e farg13.__asm__
0b60: 28 22 66 72 31 33 22 29 3b 0a 0a 69 6e 74 0a 5f ("fr13");..int._
0b70: 5f 62 75 69 6c 74 69 6e 5f 61 76 63 61 6c 6c 28 _builtin_avcall(
0b80: 61 76 5f 61 6c 69 73 74 2a 20 6c 29 0a 7b 0a 20 av_alist* l).{.
0b90: 20 72 65 67 69 73 74 65 72 20 5f 5f 61 76 77 6f register __avwo
0ba0: 72 64 2a 09 73 70 09 5f 5f 61 73 6d 5f 5f 28 22 rd*.sp.__asm__("
0bb0: 72 31 22 29 3b 20 20 2f 2a 20 43 20 6e 61 6d 65 r1"); /* C name
0bc0: 73 20 66 6f 72 20 72 65 67 69 73 74 65 72 73 20 s for registers
0bd0: 2a 2f 0a 2f 2a 72 65 67 69 73 74 65 72 20 5f 5f */./*register __
0be0: 61 76 77 6f 72 64 09 69 72 65 74 09 5f 5f 61 73 avword.iret.__as
0bf0: 6d 5f 5f 28 22 72 33 22 29 3b 20 2a 2f 0a 20 20 m__("r3"); */.
0c00: 72 65 67 69 73 74 65 72 20 5f 5f 61 76 77 6f 72 register __avwor
0c10: 64 09 69 72 65 74 32 09 5f 5f 61 73 6d 5f 5f 28 d.iret2.__asm__(
0c20: 22 72 34 22 29 3b 0a 20 20 72 65 67 69 73 74 65 "r4");. registe
0c30: 72 20 66 6c 6f 61 74 09 66 72 65 74 09 5f 5f 61 r float.fret.__a
0c40: 73 6d 5f 5f 28 22 66 72 31 22 29 3b 0a 20 20 72 sm__("fr1");. r
0c50: 65 67 69 73 74 65 72 20 64 6f 75 62 6c 65 09 64 egister double.d
0c60: 72 65 74 09 5f 5f 61 73 6d 5f 5f 28 22 66 72 31 ret.__asm__("fr1
0c70: 22 29 3b 0a 0a 20 20 5f 5f 61 76 77 6f 72 64 20 ");.. __avword
0c80: 73 70 61 63 65 5b 5f 5f 41 56 5f 41 4c 49 53 54 space[__AV_ALIST
0c90: 5f 57 4f 52 44 53 5d 3b 09 2f 2a 20 73 70 61 63 _WORDS];./* spac
0ca0: 65 20 66 6f 72 20 63 61 6c 6c 65 65 27 73 20 73 e for callee's s
0cb0: 74 61 63 6b 20 66 72 61 6d 65 20 2a 2f 0a 20 20 tack frame */.
0cc0: 5f 5f 61 76 77 6f 72 64 2a 20 61 72 67 66 72 61 __avword* argfra
0cd0: 6d 65 20 3d 20 73 70 20 2b 20 53 54 41 43 4b 5f me = sp + STACK_
0ce0: 4f 46 46 53 45 54 3b 2f 2a 20 73 74 61 63 6b 20 OFFSET;/* stack
0cf0: 6f 66 66 73 65 74 20 66 6f 72 20 61 72 67 75 6d offset for argum
0d00: 65 6e 74 20 6c 69 73 74 20 2a 2f 0a 20 20 69 6e ent list */. in
0d10: 74 20 61 72 67 6c 65 6e 20 3d 20 6c 2d 3e 61 70 t arglen = l->ap
0d20: 74 72 20 2d 20 6c 2d 3e 61 72 67 73 3b 0a 23 69 tr - l->args;.#i
0d30: 66 20 64 65 66 69 6e 65 64 28 5f 41 49 58 29 20 f defined(_AIX)
0d40: 7c 7c 20 28 64 65 66 69 6e 65 64 28 5f 5f 4d 41 || (defined(__MA
0d50: 43 48 5f 5f 29 20 26 26 20 64 65 66 69 6e 65 64 CH__) && defined
0d60: 28 5f 5f 41 50 50 4c 45 5f 5f 29 29 0a 20 20 69 (__APPLE__)). i
0d70: 6e 74 20 66 61 72 67 6c 65 6e 20 3d 20 30 3b 0a nt farglen = 0;.
0d80: 23 65 6c 73 65 0a 20 20 69 6e 74 20 66 61 72 67 #else. int farg
0d90: 6c 65 6e 20 3d 20 6c 2d 3e 66 61 70 74 72 20 2d len = l->faptr -
0da0: 20 6c 2d 3e 66 61 72 67 73 3b 0a 23 65 6e 64 69 l->fargs;.#endi
0db0: 66 0a 20 20 5f 5f 61 76 77 6f 72 64 20 69 3b 0a f. __avword i;.
0dc0: 0a 20 20 66 6f 72 20 28 69 20 3d 20 28 38 2d 66 . for (i = (8-f
0dd0: 61 72 67 6c 65 6e 29 3b 20 69 20 3c 20 61 72 67 arglen); i < arg
0de0: 6c 65 6e 3b 20 69 2b 2b 29 20 2f 2a 20 70 75 73 len; i++) /* pus
0df0: 68 20 66 75 6e 63 74 69 6f 6e 20 61 72 67 73 20 h function args
0e00: 6f 6e 74 6f 20 73 74 61 63 6b 20 2a 2f 0a 20 20 onto stack */.
0e10: 20 20 61 72 67 66 72 61 6d 65 5b 69 2d 38 2b 66 argframe[i-8+f
0e20: 61 72 67 6c 65 6e 5d 20 3d 20 6c 2d 3e 61 72 67 arglen] = l->arg
0e30: 73 5b 69 5d 3b 0a 0a 20 20 2f 2a 20 70 61 73 73 s[i];.. /* pass
0e40: 20 66 69 72 73 74 20 31 33 20 66 6c 6f 61 74 69 first 13 floati
0e50: 6e 67 2d 70 6f 69 6e 74 20 61 72 67 73 20 69 6e ng-point args in
0e60: 20 72 65 67 69 73 74 65 72 73 20 2a 2f 0a 20 20 registers */.
0e70: 61 72 67 6c 65 6e 20 3d 20 6c 2d 3e 66 61 70 74 arglen = l->fapt
0e80: 72 20 2d 20 6c 2d 3e 66 61 72 67 73 3b 0a 20 20 r - l->fargs;.
0e90: 69 66 20 28 61 72 67 6c 65 6e 20 3d 3d 20 30 29 if (arglen == 0)
0ea0: 20 67 6f 74 6f 20 66 61 72 67 73 30 3b 0a 20 20 goto fargs0;.
0eb0: 65 6c 73 65 20 69 66 20 28 61 72 67 6c 65 6e 20 else if (arglen
0ec0: 3d 3d 20 31 29 20 67 6f 74 6f 20 66 61 72 67 73 == 1) goto fargs
0ed0: 31 3b 0a 20 20 65 6c 73 65 20 69 66 20 28 61 72 1;. else if (ar
0ee0: 67 6c 65 6e 20 3d 3d 20 32 29 20 67 6f 74 6f 20 glen == 2) goto
0ef0: 66 61 72 67 73 32 3b 0a 20 20 65 6c 73 65 20 69 fargs2;. else i
0f00: 66 20 28 61 72 67 6c 65 6e 20 3d 3d 20 33 29 20 f (arglen == 3)
0f10: 67 6f 74 6f 20 66 61 72 67 73 33 3b 0a 20 20 65 goto fargs3;. e
0f20: 6c 73 65 20 69 66 20 28 61 72 67 6c 65 6e 20 3d lse if (arglen =
0f30: 3d 20 34 29 20 67 6f 74 6f 20 66 61 72 67 73 34 = 4) goto fargs4
0f40: 3b 0a 20 20 65 6c 73 65 20 69 66 20 28 61 72 67 ;. else if (arg
0f50: 6c 65 6e 20 3d 3d 20 35 29 20 67 6f 74 6f 20 66 len == 5) goto f
0f60: 61 72 67 73 35 3b 0a 20 20 65 6c 73 65 20 69 66 args5;. else if
0f70: 20 28 61 72 67 6c 65 6e 20 3d 3d 20 36 29 20 67 (arglen == 6) g
0f80: 6f 74 6f 20 66 61 72 67 73 36 3b 0a 20 20 65 6c oto fargs6;. el
0f90: 73 65 20 69 66 20 28 61 72 67 6c 65 6e 20 3d 3d se if (arglen ==
0fa0: 20 37 29 20 67 6f 74 6f 20 66 61 72 67 73 37 3b 7) goto fargs7;
0fb0: 0a 20 20 65 6c 73 65 20 69 66 20 28 61 72 67 6c . else if (argl
0fc0: 65 6e 20 3d 3d 20 38 29 20 67 6f 74 6f 20 66 61 en == 8) goto fa
0fd0: 72 67 73 38 3b 0a 20 20 65 6c 73 65 20 69 66 20 rgs8;. else if
0fe0: 28 61 72 67 6c 65 6e 20 3d 3d 20 39 29 20 67 6f (arglen == 9) go
0ff0: 74 6f 20 66 61 72 67 73 39 3b 0a 20 20 65 6c 73 to fargs9;. els
1000: 65 20 69 66 20 28 61 72 67 6c 65 6e 20 3d 3d 20 e if (arglen ==
1010: 31 30 29 20 67 6f 74 6f 20 66 61 72 67 73 31 30 10) goto fargs10
1020: 3b 0a 20 20 65 6c 73 65 20 69 66 20 28 61 72 67 ;. else if (arg
1030: 6c 65 6e 20 3d 3d 20 31 31 29 20 67 6f 74 6f 20 len == 11) goto
1040: 66 61 72 67 73 31 31 3b 0a 20 20 65 6c 73 65 20 fargs11;. else
1050: 69 66 20 28 61 72 67 6c 65 6e 20 3d 3d 20 31 32 if (arglen == 12
1060: 29 20 67 6f 74 6f 20 66 61 72 67 73 31 32 3b 0a ) goto fargs12;.
1070: 20 20 65 6c 73 65 20 69 66 20 28 61 72 67 6c 65 else if (argle
1080: 6e 20 3d 3d 20 31 33 29 20 67 6f 74 6f 20 66 61 n == 13) goto fa
1090: 72 67 73 31 33 3b 0a 20 20 66 61 72 67 73 31 33 rgs13;. fargs13
10a0: 3a 20 66 61 72 67 31 33 20 3d 20 6c 2d 3e 66 61 : farg13 = l->fa
10b0: 72 67 73 5b 31 32 5d 3b 0a 20 20 66 61 72 67 73 rgs[12];. fargs
10c0: 31 32 3a 20 66 61 72 67 31 32 20 3d 20 6c 2d 3e 12: farg12 = l->
10d0: 66 61 72 67 73 5b 31 31 5d 3b 0a 20 20 66 61 72 fargs[11];. far
10e0: 67 73 31 31 3a 20 66 61 72 67 31 31 20 3d 20 6c gs11: farg11 = l
10f0: 2d 3e 66 61 72 67 73 5b 31 30 5d 3b 0a 20 20 66 ->fargs[10];. f
1100: 61 72 67 73 31 30 3a 20 66 61 72 67 31 30 20 3d args10: farg10 =
1110: 20 6c 2d 3e 66 61 72 67 73 5b 39 5d 3b 0a 20 20 l->fargs[9];.
1120: 66 61 72 67 73 39 3a 20 66 61 72 67 39 20 3d 20 fargs9: farg9 =
1130: 6c 2d 3e 66 61 72 67 73 5b 38 5d 3b 0a 20 20 66 l->fargs[8];. f
1140: 61 72 67 73 38 3a 20 66 61 72 67 38 20 3d 20 6c args8: farg8 = l
1150: 2d 3e 66 61 72 67 73 5b 37 5d 3b 0a 20 20 66 61 ->fargs[7];. fa
1160: 72 67 73 37 3a 20 66 61 72 67 37 20 3d 20 6c 2d rgs7: farg7 = l-
1170: 3e 66 61 72 67 73 5b 36 5d 3b 0a 20 20 66 61 72 >fargs[6];. far
1180: 67 73 36 3a 20 66 61 72 67 36 20 3d 20 6c 2d 3e gs6: farg6 = l->
1190: 66 61 72 67 73 5b 35 5d 3b 0a 20 20 66 61 72 67 fargs[5];. farg
11a0: 73 35 3a 20 66 61 72 67 35 20 3d 20 6c 2d 3e 66 s5: farg5 = l->f
11b0: 61 72 67 73 5b 34 5d 3b 0a 20 20 66 61 72 67 73 args[4];. fargs
11c0: 34 3a 20 66 61 72 67 34 20 3d 20 6c 2d 3e 66 61 4: farg4 = l->fa
11d0: 72 67 73 5b 33 5d 3b 0a 20 20 66 61 72 67 73 33 rgs[3];. fargs3
11e0: 3a 20 66 61 72 67 33 20 3d 20 6c 2d 3e 66 61 72 : farg3 = l->far
11f0: 67 73 5b 32 5d 3b 0a 20 20 66 61 72 67 73 32 3a gs[2];. fargs2:
1200: 20 66 61 72 67 32 20 3d 20 6c 2d 3e 66 61 72 67 farg2 = l->farg
1210: 73 5b 31 5d 3b 0a 20 20 66 61 72 67 73 31 3a 20 s[1];. fargs1:
1220: 66 61 72 67 31 20 3d 20 6c 2d 3e 66 61 72 67 73 farg1 = l->fargs
1230: 5b 30 5d 3b 0a 20 20 66 61 72 67 73 30 3a 20 3b [0];. fargs0: ;
1240: 0a 09 09 09 09 2f 2a 20 63 61 6c 6c 20 66 75 6e ...../* call fun
1250: 63 74 69 6f 6e 2c 20 70 61 73 73 20 38 20 61 72 ction, pass 8 ar
1260: 67 73 20 69 6e 20 72 65 67 69 73 74 65 72 73 20 gs in registers
1270: 2a 2f 0a 20 20 69 20 3d 20 28 2a 6c 2d 3e 66 75 */. i = (*l->fu
1280: 6e 63 29 28 6c 2d 3e 61 72 67 73 5b 30 5d 2c 20 nc)(l->args[0],
1290: 6c 2d 3e 61 72 67 73 5b 31 5d 2c 20 6c 2d 3e 61 l->args[1], l->a
12a0: 72 67 73 5b 32 5d 2c 20 6c 2d 3e 61 72 67 73 5b rgs[2], l->args[
12b0: 33 5d 2c 0a 09 09 20 6c 2d 3e 61 72 67 73 5b 34 3],... l->args[4
12c0: 5d 2c 20 6c 2d 3e 61 72 67 73 5b 35 5d 2c 20 6c ], l->args[5], l
12d0: 2d 3e 61 72 67 73 5b 36 5d 2c 20 6c 2d 3e 61 72 ->args[6], l->ar
12e0: 67 73 5b 37 5d 29 3b 0a 0a 20 20 2f 2a 20 73 61 gs[7]);.. /* sa
12f0: 76 65 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 ve return value
1300: 2a 2f 0a 20 20 69 66 20 28 6c 2d 3e 72 74 79 70 */. if (l->rtyp
1310: 65 20 3d 3d 20 5f 5f 41 56 76 6f 69 64 29 20 7b e == __AVvoid) {
1320: 0a 20 20 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 . } else. if (
1330: 6c 2d 3e 72 74 79 70 65 20 3d 3d 20 5f 5f 41 56 l->rtype == __AV
1340: 77 6f 72 64 29 20 7b 0a 20 20 20 20 52 45 54 55 word) {. RETU
1350: 52 4e 28 5f 5f 61 76 77 6f 72 64 2c 20 69 29 3b RN(__avword, i);
1360: 0a 20 20 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 . } else. if (
1370: 6c 2d 3e 72 74 79 70 65 20 3d 3d 20 5f 5f 41 56 l->rtype == __AV
1380: 63 68 61 72 29 20 7b 0a 20 20 20 20 52 45 54 55 char) {. RETU
1390: 52 4e 28 63 68 61 72 2c 20 69 29 3b 0a 20 20 7d RN(char, i);. }
13a0: 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 2d 3e 72 else. if (l->r
13b0: 74 79 70 65 20 3d 3d 20 5f 5f 41 56 73 63 68 61 type == __AVscha
13c0: 72 29 20 7b 0a 20 20 20 20 52 45 54 55 52 4e 28 r) {. RETURN(
13d0: 73 69 67 6e 65 64 20 63 68 61 72 2c 20 69 29 3b signed char, i);
13e0: 0a 20 20 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 . } else. if (
13f0: 6c 2d 3e 72 74 79 70 65 20 3d 3d 20 5f 5f 41 56 l->rtype == __AV
1400: 75 63 68 61 72 29 20 7b 0a 20 20 20 20 52 45 54 uchar) {. RET
1410: 55 52 4e 28 75 6e 73 69 67 6e 65 64 20 63 68 61 URN(unsigned cha
1420: 72 2c 20 69 29 3b 0a 20 20 7d 20 65 6c 73 65 0a r, i);. } else.
1430: 20 20 69 66 20 28 6c 2d 3e 72 74 79 70 65 20 3d if (l->rtype =
1440: 3d 20 5f 5f 41 56 73 68 6f 72 74 29 20 7b 0a 20 = __AVshort) {.
1450: 20 20 20 52 45 54 55 52 4e 28 73 68 6f 72 74 2c RETURN(short,
1460: 20 69 29 3b 0a 20 20 7d 20 65 6c 73 65 0a 20 20 i);. } else.
1470: 69 66 20 28 6c 2d 3e 72 74 79 70 65 20 3d 3d 20 if (l->rtype ==
1480: 5f 5f 41 56 75 73 68 6f 72 74 29 20 7b 0a 20 20 __AVushort) {.
1490: 20 20 52 45 54 55 52 4e 28 75 6e 73 69 67 6e 65 RETURN(unsigne
14a0: 64 20 73 68 6f 72 74 2c 20 69 29 3b 0a 20 20 7d d short, i);. }
14b0: 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 2d 3e 72 else. if (l->r
14c0: 74 79 70 65 20 3d 3d 20 5f 5f 41 56 69 6e 74 29 type == __AVint)
14d0: 20 7b 0a 20 20 20 20 52 45 54 55 52 4e 28 69 6e {. RETURN(in
14e0: 74 2c 20 69 29 3b 0a 20 20 7d 20 65 6c 73 65 0a t, i);. } else.
14f0: 20 20 69 66 20 28 6c 2d 3e 72 74 79 70 65 20 3d if (l->rtype =
1500: 3d 20 5f 5f 41 56 75 69 6e 74 29 20 7b 0a 20 20 = __AVuint) {.
1510: 20 20 52 45 54 55 52 4e 28 75 6e 73 69 67 6e 65 RETURN(unsigne
1520: 64 20 69 6e 74 2c 20 69 29 3b 0a 20 20 7d 20 65 d int, i);. } e
1530: 6c 73 65 0a 20 20 69 66 20 28 6c 2d 3e 72 74 79 lse. if (l->rty
1540: 70 65 20 3d 3d 20 5f 5f 41 56 6c 6f 6e 67 29 20 pe == __AVlong)
1550: 7b 0a 20 20 20 20 52 45 54 55 52 4e 28 6c 6f 6e {. RETURN(lon
1560: 67 2c 20 69 29 3b 0a 20 20 7d 20 65 6c 73 65 0a g, i);. } else.
1570: 20 20 69 66 20 28 6c 2d 3e 72 74 79 70 65 20 3d if (l->rtype =
1580: 3d 20 5f 5f 41 56 75 6c 6f 6e 67 29 20 7b 0a 20 = __AVulong) {.
1590: 20 20 20 52 45 54 55 52 4e 28 75 6e 73 69 67 6e RETURN(unsign
15a0: 65 64 20 6c 6f 6e 67 2c 20 69 29 3b 0a 20 20 7d ed long, i);. }
15b0: 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 2d 3e 72 else. if (l->r
15c0: 74 79 70 65 20 3d 3d 20 5f 5f 41 56 6c 6f 6e 67 type == __AVlong
15d0: 6c 6f 6e 67 20 7c 7c 20 6c 2d 3e 72 74 79 70 65 long || l->rtype
15e0: 20 3d 3d 20 5f 5f 41 56 75 6c 6f 6e 67 6c 6f 6e == __AVulonglon
15f0: 67 29 20 7b 0a 20 20 20 20 28 28 5f 5f 61 76 77 g) {. ((__avw
1600: 6f 72 64 2a 29 6c 2d 3e 72 61 64 64 72 29 5b 30 ord*)l->raddr)[0
1610: 5d 20 3d 20 69 3b 0a 20 20 20 20 28 28 5f 5f 61 ] = i;. ((__a
1620: 76 77 6f 72 64 2a 29 6c 2d 3e 72 61 64 64 72 29 vword*)l->raddr)
1630: 5b 31 5d 20 3d 20 69 72 65 74 32 3b 0a 20 20 7d [1] = iret2;. }
1640: 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 2d 3e 72 else. if (l->r
1650: 74 79 70 65 20 3d 3d 20 5f 5f 41 56 66 6c 6f 61 type == __AVfloa
1660: 74 29 20 7b 0a 20 20 20 20 52 45 54 55 52 4e 28 t) {. RETURN(
1670: 66 6c 6f 61 74 2c 20 66 72 65 74 29 3b 0a 20 20 float, fret);.
1680: 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 2d 3e } else. if (l->
1690: 72 74 79 70 65 20 3d 3d 20 5f 5f 41 56 64 6f 75 rtype == __AVdou
16a0: 62 6c 65 29 20 7b 0a 20 20 20 20 52 45 54 55 52 ble) {. RETUR
16b0: 4e 28 64 6f 75 62 6c 65 2c 20 64 72 65 74 29 3b N(double, dret);
16c0: 0a 20 20 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 . } else. if (
16d0: 6c 2d 3e 72 74 79 70 65 20 3d 3d 20 5f 5f 41 56 l->rtype == __AV
16e0: 76 6f 69 64 70 29 20 7b 0a 20 20 20 20 52 45 54 voidp) {. RET
16f0: 55 52 4e 28 76 6f 69 64 2a 2c 20 69 29 3b 0a 20 URN(void*, i);.
1700: 20 7d 20 65 6c 73 65 0a 20 20 69 66 20 28 6c 2d } else. if (l-
1710: 3e 72 74 79 70 65 20 3d 3d 20 5f 5f 41 56 73 74 >rtype == __AVst
1720: 72 75 63 74 29 20 7b 0a 20 20 20 20 69 66 20 28 ruct) {. if (
1730: 6c 2d 3e 66 6c 61 67 73 20 26 20 5f 5f 41 56 5f l->flags & __AV_
1740: 50 43 43 5f 53 54 52 55 43 54 5f 52 45 54 55 52 PCC_STRUCT_RETUR
1750: 4e 29 20 7b 0a 20 20 20 20 20 20 2f 2a 20 70 63 N) {. /* pc
1760: 63 20 73 74 72 75 63 74 20 72 65 74 75 72 6e 20 c struct return
1770: 63 6f 6e 76 65 6e 74 69 6f 6e 3a 20 6e 65 65 64 convention: need
1780: 20 61 20 20 2a 28 54 59 50 45 2a 29 6c 2d 3e 72 a *(TYPE*)l->r
1790: 61 64 64 72 20 3d 20 2a 28 54 59 50 45 2a 29 69 addr = *(TYPE*)i
17a0: 3b 20 20 2a 2f 0a 20 20 20 20 20 20 69 66 20 28 ; */. if (
17b0: 6c 2d 3e 72 73 69 7a 65 20 3d 3d 20 73 69 7a 65 l->rsize == size
17c0: 6f 66 28 63 68 61 72 29 29 20 7b 0a 20 20 20 20 of(char)) {.
17d0: 20 20 20 20 52 45 54 55 52 4e 28 63 68 61 72 2c RETURN(char,
17e0: 20 2a 28 63 68 61 72 2a 29 69 29 3b 0a 20 20 20 *(char*)i);.
17f0: 20 20 20 7d 20 65 6c 73 65 0a 20 20 20 20 20 20 } else.
1800: 69 66 20 28 6c 2d 3e 72 73 69 7a 65 20 3d 3d 20 if (l->rsize ==
1810: 73 69 7a 65 6f 66 28 73 68 6f 72 74 29 29 20 7b sizeof(short)) {
1820: 0a 20 20 20 20 20 20 20 20 52 45 54 55 52 4e 28 . RETURN(
1830: 73 68 6f 72 74 2c 20 2a 28 73 68 6f 72 74 2a 29 short, *(short*)
1840: 69 29 3b 0a 20 20 20 20 20 20 7d 20 65 6c 73 65 i);. } else
1850: 0a 20 20 20 20 20 20 69 66 20 28 6c 2d 3e 72 73 . if (l->rs
1860: 69 7a 65 20 3d 3d 20 73 69 7a 65 6f 66 28 69 6e ize == sizeof(in
1870: 74 29 29 20 7b 0a 20 20 20 20 20 20 20 20 52 45 t)) {. RE
1880: 54 55 52 4e 28 69 6e 74 2c 20 2a 28 69 6e 74 2a TURN(int, *(int*
1890: 29 69 29 3b 0a 20 20 20 20 20 20 7d 20 65 6c 73 )i);. } els
18a0: 65 0a 20 20 20 20 20 20 69 66 20 28 6c 2d 3e 72 e. if (l->r
18b0: 73 69 7a 65 20 3d 3d 20 73 69 7a 65 6f 66 28 64 size == sizeof(d
18c0: 6f 75 62 6c 65 29 29 20 7b 0a 20 20 20 20 20 20 ouble)) {.
18d0: 20 20 28 28 69 6e 74 2a 29 6c 2d 3e 72 61 64 64 ((int*)l->radd
18e0: 72 29 5b 30 5d 20 3d 20 28 28 69 6e 74 2a 29 69 r)[0] = ((int*)i
18f0: 29 5b 30 5d 3b 0a 20 20 20 20 20 20 20 20 28 28 )[0];. ((
1900: 69 6e 74 2a 29 6c 2d 3e 72 61 64 64 72 29 5b 31 int*)l->raddr)[1
1910: 5d 20 3d 20 28 28 69 6e 74 2a 29 69 29 5b 31 5d ] = ((int*)i)[1]
1920: 3b 0a 20 20 20 20 20 20 7d 20 65 6c 73 65 20 7b ;. } else {
1930: 0a 20 20 20 20 20 20 20 20 69 6e 74 20 6e 20 3d . int n =
1940: 20 28 6c 2d 3e 72 73 69 7a 65 20 2b 20 73 69 7a (l->rsize + siz
1950: 65 6f 66 28 5f 5f 61 76 77 6f 72 64 29 2d 31 29 eof(__avword)-1)
1960: 2f 73 69 7a 65 6f 66 28 5f 5f 61 76 77 6f 72 64 /sizeof(__avword
1970: 29 3b 0a 20 20 20 20 20 20 20 20 77 68 69 6c 65 );. while
1980: 20 28 2d 2d 6e 20 3e 3d 20 30 29 0a 20 20 20 20 (--n >= 0).
1990: 20 20 20 20 20 20 28 28 5f 5f 61 76 77 6f 72 64 ((__avword
19a0: 2a 29 6c 2d 3e 72 61 64 64 72 29 5b 6e 5d 20 3d *)l->raddr)[n] =
19b0: 20 28 28 5f 5f 61 76 77 6f 72 64 2a 29 69 29 5b ((__avword*)i)[
19c0: 6e 5d 3b 0a 20 20 20 20 20 20 7d 0a 20 20 20 20 n];. }.
19d0: 7d 20 65 6c 73 65 20 7b 0a 20 20 20 20 20 20 2f } else {. /
19e0: 2a 20 6e 6f 72 6d 61 6c 20 73 74 72 75 63 74 20 * normal struct
19f0: 72 65 74 75 72 6e 20 63 6f 6e 76 65 6e 74 69 6f return conventio
1a00: 6e 20 2a 2f 0a 20 20 20 20 20 20 69 66 20 28 6c n */. if (l
1a10: 2d 3e 66 6c 61 67 73 20 26 20 5f 5f 41 56 5f 52 ->flags & __AV_R
1a20: 45 47 49 53 54 45 52 5f 53 54 52 55 43 54 5f 52 EGISTER_STRUCT_R
1a30: 45 54 55 52 4e 29 20 7b 0a 20 20 20 20 20 20 20 ETURN) {.
1a40: 20 69 66 20 28 6c 2d 3e 72 73 69 7a 65 20 3d 3d if (l->rsize ==
1a50: 20 73 69 7a 65 6f 66 28 63 68 61 72 29 29 20 7b sizeof(char)) {
1a60: 0a 20 20 20 20 20 20 20 20 20 20 52 45 54 55 52 . RETUR
1a70: 4e 28 63 68 61 72 2c 20 69 29 3b 0a 20 20 20 20 N(char, i);.
1a80: 20 20 20 20 7d 20 65 6c 73 65 0a 20 20 20 20 20 } else.
1a90: 20 20 20 69 66 20 28 6c 2d 3e 72 73 69 7a 65 20 if (l->rsize
1aa0: 3d 3d 20 73 69 7a 65 6f 66 28 73 68 6f 72 74 29 == sizeof(short)
1ab0: 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20 52 45 ) {. RE
1ac0: 54 55 52 4e 28 73 68 6f 72 74 2c 20 69 29 3b 0a TURN(short, i);.
1ad0: 20 20 20 20 20 20 20 20 7d 20 65 6c 73 65 0a 20 } else.
1ae0: 20 20 20 20 20 20 20 69 66 20 28 6c 2d 3e 72 73 if (l->rs
1af0: 69 7a 65 20 3d 3d 20 73 69 7a 65 6f 66 28 69 6e ize == sizeof(in
1b00: 74 29 29 20 7b 0a 20 20 20 20 20 20 20 20 20 20 t)) {.
1b10: 52 45 54 55 52 4e 28 69 6e 74 2c 20 69 29 3b 0a RETURN(int, i);.
1b20: 20 20 20 20 20 20 20 20 7d 20 65 6c 73 65 0a 20 } else.
1b30: 20 20 20 20 20 20 20 69 66 20 28 6c 2d 3e 72 73 if (l->rs
1b40: 69 7a 65 20 3d 3d 20 32 2a 73 69 7a 65 6f 66 28 ize == 2*sizeof(
1b50: 5f 5f 61 76 77 6f 72 64 29 29 20 7b 0a 20 20 20 __avword)) {.
1b60: 20 20 20 20 20 20 20 28 28 5f 5f 61 76 77 6f 72 ((__avwor
1b70: 64 2a 29 6c 2d 3e 72 61 64 64 72 29 5b 30 5d 20 d*)l->raddr)[0]
1b80: 3d 20 69 3b 0a 20 20 20 20 20 20 20 20 20 20 28 = i;. (
1b90: 28 5f 5f 61 76 77 6f 72 64 2a 29 6c 2d 3e 72 61 (__avword*)l->ra
1ba0: 64 64 72 29 5b 31 5d 20 3d 20 69 72 65 74 32 3b ddr)[1] = iret2;
1bb0: 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 . }.
1bc0: 20 7d 0a 20 20 20 20 7d 0a 20 20 7d 0a 20 20 72 }. }. }. r
1bd0: 65 74 75 72 6e 20 30 3b 0a 7d 0a 0a 23 65 6e 64 eturn 0;.}..#end
1be0: 69 66 20 2f 2a 5f 61 76 63 61 6c 6c 5f 72 73 36 if /*_avcall_rs6
1bf0: 30 30 30 5f 63 20 2a 2f 0a 000_c */.