Fix for initialization of scalos preferences library. Library is now loaded only...
[AROS-Contrib.git] / rexx / lstring / mult.c
blob73318c7080deec667d123114a76de640721bd9a9
1 /*
2 * $Header$
3 * $Log$
4 * Revision 1.1 2001/04/04 05:43:38 wang
5 * First commit: compiles on Linux, Amiga, Windows, Windows CE, generic gcc
7 * Revision 1.1 1998/07/02 17:18:00 bnv
8 * Initial Version
12 #include <lstring.h>
14 /* ------------------- Lmult ----------------- */
15 void
16 Lmult( const PLstr to, const PLstr A, const PLstr B)
18 L2NUM(A);
19 L2NUM(B);
21 if ((LTYPE(*A)==LINTEGER_TY) && (LTYPE(*B)==LINTEGER_TY)) {
22 LINT(*to) = LINT(*A) * LINT(*B);
23 LTYPE(*to) = LINTEGER_TY;
24 LLEN(*to) = sizeof(long);
25 } else {
26 LREAL(*to) = TOREAL(*A) * TOREAL(*B);
27 LTYPE(*to) = LREAL_TY;
28 LLEN(*to) = sizeof(double);
30 } /* Lmult */