- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- Location:
- lib700
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
lib700/bitrev.c
r0292fbb r7258c6a 6 6 */ 7 7 8 static int bitmask[] = {8 static int16_t bitmask[] = { 9 9 10 10 0x0001, 0x0002, 0x0004, 0x0008, … … 22 22 */ 23 23 24 int bitrev(int bitsin, int nbits)24 int16_t bitrev(int16_t bitsin, int16_t nbits) 25 25 { 26 int m, n;26 int16_t m, n; 27 27 28 28 n = 0; -
lib700/ctype.c
r0292fbb r7258c6a 37 37 } 38 38 39 char__atab[] = { /* EOF won't work properly with this table */39 int8_t __atab[] = { /* EOF won't work properly with this table */ 40 40 #endif 41 41 -
lib700/ispow2.c
r0292fbb r7258c6a 13 13 #include "stddefs.h" 14 14 15 short ispow2(longx)15 int16_t ispow2(int32_t x) 16 16 { 17 register short i;18 register longk;17 register int16_t i; 18 register int32_t k; 19 19 20 20 k = 0x00000001L; /* setup the bit mask in k */ -
lib700/mangle.c
r0292fbb r7258c6a 20 20 */ 21 21 22 long mangle(long *bitmap, short nb, longib)22 int32_t mangle(int32_t *bitmap, int16_t nb, int32_t ib) 23 23 { 24 register longbm; /* scan mask */25 register longrv; /* result value */26 register short bn; /* bit number (bitmap index) */24 register int32_t bm; /* scan mask */ 25 register int32_t rv; /* result value */ 26 register int16_t bn; /* bit number (bitmap index) */ 27 27 28 28 bm = 0x00000001L; /* setup scan mask */ -
lib700/micons.c
r0292fbb r7258c6a 35 35 */ 36 36 37 short micons(short wi)37 int16_t micons(int16_t wi) 38 38 { 39 return(( short)( ((wi << 8) & 0xFF00) | ((wi >> 8) & 0x00FF) ) );39 return((int16_t)( ((wi << 8) & 0xFF00) | ((wi >> 8) & 0x00FF) ) ); 40 40 } 41 41 … … 46 46 */ 47 47 48 int miconi(int wi)48 int16_t miconi(int16_t wi) 49 49 { 50 if (sizeof (int ) == 4)50 if (sizeof (int16_t) == 4) 51 51 return( ((wi << 24) & 0xFF000000L) | ((wi << 8) & 0x00FF0000L) | 52 52 ((wi >> 8) & 0x0000FF00L) | ((wi >> 24) & 0x000000FFL) ); … … 61 61 */ 62 62 63 long miconl(longwi)63 int32_t miconl(int32_t wi) 64 64 { 65 65 return( ((wi << 24) & 0xFF000000L) | ((wi << 8) & 0x00FF0000L) | -
lib700/tolower.c
r0292fbb r7258c6a 14 14 */ 15 15 16 int tolower(int c)16 int16_t tolower(int16_t c) 17 17 { 18 int x;18 int16_t x; 19 19 20 20 if (isascii(c)) { -
lib700/toupper.c
r0292fbb r7258c6a 14 14 */ 15 15 16 int toupper(int c)16 int16_t toupper(int16_t c) 17 17 { 18 int x;18 int16_t x; 19 19 20 20 if (isascii(c)) {
Note:
See TracChangeset
for help on using the changeset viewer.