GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
unfl.c
Go to the documentation of this file.
1
/* unfl.c CCMATH mathematics library source code.
2
*
3
* Copyright (C) 2000 Daniel A. Atkinson All rights reserved.
4
* This code may be redistributed under the terms of the GNU library
5
* public license (LGPL). ( See the lgpl.license file for details.)
6
* ------------------------------------------------------------------------
7
*/
8
static
unsigned
int
a=69069U,c=244045795U;
9
static
unsigned
int
s
,
h
,sbuf[256];
10
double
unfl
()
11
{
int
i;
12
i=(
int
)(
s
>>24);
s
=sbuf[i];
13
h
=a*
h
+c; sbuf[i]=
h
;
14
return
s
*2.328306436538696e-10;
15
}
16
void
setunfl
(
unsigned
int
k)
17
{
int
j;
18
for
(
h
=k,j=0; j<=256 ;++j){
19
h
=a*
h
+c;
20
if
(j<256) sbuf[j]=
h
;
else
s
=
h
;
21
}
22
}
dialogs.s
tuple s
Definition:
psmap/dialogs.py:2766
setunfl
void setunfl(unsigned int k)
Definition:
unfl.c:16
int
int
Definition:
g3dcolor.c:48
dialogs.h
tuple h
panel.defaultSize = wx.CheckBox(panel, id = wx.ID_ANY, label = _("Use default size")) panel...
Definition:
psmap/dialogs.py:2736
unfl
double unfl()
Definition:
unfl.c:10
lib
external
ccmath
unfl.c
Generated on Sat Jan 2 2016 01:46:49 for GRASS Programmer's Manual by
1.8.5