Fixed newline characters throughout the code
[com/gs-lite.git] / src / lib / gscplftaaux / rts_sample.c
1 #include "gsconfig.h"
2 #include "gstypes.h"
3 #include "rts_external.h"
4
5 /* ------------------------------------------------
6 Copyright 2014 AT&T Intellectual Property
7    Licensed under the Apache License, Version 2.0 (the "License");
8    you may not use this file except in compliance with the License.
9    You may obtain a copy of the License at
10
11      http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18  ------------------------------------------- */
19
20
21 //#define FILTERDEBUG 100000
22 #ifdef FILTERDEBUG
23 #include "stdio.h"
24 #include "stdlib.h"
25 #endif
26
27 #define OFFSET 17
28 #define PRIME 2997913
29
30
31 static gs_uint32_t rval;
32
33 #define MAX_TRIGGER 16
34
35
36 void set_seed(gs_uint32_t s){rval=s;}
37
38 gs_uint32_t lc_rand(){
39                 rval = (rval+OFFSET)*PRIME;
40                         return(rval & 0xffffffff);
41 }
42
43
44