#include "machine.h"#include "genscal.h"Include dependency graph for genscal.c:

Go to the source code of this file.
Defines | |
| #define | SCAL(Type) |
Typedefs | |
| typedef signed char | integer1 |
| typedef short | integer2 |
Functions | |
| int C2F() | genscal (integer *typ, integer *n, int *da, int *dx, integer *incx) |
| #define SCAL | ( | Type | ) |
Definition at line 18 of file genscal.c.
References i, i1, i2, incx, n, SCAL, and typ.
00019 { 00020 static integer i, i1, i2, nincx; 00021 if (*n <= 0 || *incx <= 0) return 0; 00022 nincx = *n * (*incx); 00023 i1 = nincx; 00024 i2 = *incx; 00025 00026 switch (*typ) { 00027 case 1: 00028 SCAL(integer1); 00029 break; 00030 case 2: 00031 SCAL(integer2); 00032 break; 00033 case 4: 00034 SCAL(integer); 00035 break; 00036 case 11: 00037 SCAL(unsigned char); 00038 break; 00039 case 12: 00040 SCAL(unsigned short); 00041 break; 00042 case 14: 00043 SCAL(unsigned int); 00044 break; 00045 } 00046 return 0; 00047 }
1.5.1