| 2 | 1 /* | 
|  | 2  * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische | 
|  | 3  * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for | 
|  | 4  * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. | 
|  | 5  */ | 
|  | 6 | 
|  | 7 #include	"config.h" | 
|  | 8 | 
|  | 9 #ifdef	HAS_STDLIB_H | 
|  | 10 #include	<stdlib.h> | 
|  | 11 #include	<string.h> | 
|  | 12 #else | 
|  | 13 #	include "proto.h" | 
|  | 14 extern char *memset P((char *, int, int)); | 
|  | 15 #endif | 
|  | 16 #include <stdio.h> | 
|  | 17 | 
|  | 18 #include "private.h" | 
|  | 19 #include "gsm.h" | 
|  | 20 #include "proto.h" | 
|  | 21 | 
|  | 22 gsm gsm_create P0() | 
|  | 23 { | 
|  | 24   gsm r; | 
|  | 25 | 
|  | 26 #ifdef	USE_TABLE_MUL | 
|  | 27 | 
|  | 28   static int mul_init = 0; | 
|  | 29   if (!mul_init) { | 
|  | 30     mul_init = 1; | 
|  | 31     init_umul_table(); | 
|  | 32   } | 
|  | 33 #endif | 
|  | 34 | 
|  | 35   r = (gsm) malloc(sizeof(struct gsm_state)); | 
|  | 36   if (!r) | 
|  | 37     return r; | 
|  | 38 | 
|  | 39   memset((char *) r, 0, sizeof(*r)); | 
|  | 40   r->nrp = 40; | 
|  | 41 | 
|  | 42   return r; | 
|  | 43 } |