Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Typedefs | Functions | Variables
enough.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

Go to the source code of this file.

Macros

#define local   static
 
#define INDEX(i, j, k)   (((size_t)((i-1)>>1)*((i-2)>>1)+(j>>1)-1)*(max-1)+k-1)
 

Typedefs

typedef unsigned long long big_t
 
typedef unsigned long long code_t
 

Functions

local void cleanup (void)
 
local big_t count (int syms, int len, int left)
 
local int beenhere (int syms, int len, int left, int mem, int rem)
 
local void examine (int syms, int len, int left, int mem, int rem)
 
local void enough (int syms)
 
int main (int argc, char **argv)
 

Variables

local int max
 
local int root
 
local int large
 
local size_t size
 
local intcode
 
local big_tnum
 
local struct tab * done
 

Macro Definition Documentation

◆ INDEX

#define INDEX (   i,
  j,
 
)    (((size_t)((i-1)>>1)*((i-2)>>1)+(j>>1)-1)*(max-1)+k-1)

Definition at line 179 of file enough.c.

Referenced by beenhere(), count(), and enough().

◆ local

#define local   static

Definition at line 107 of file enough.c.

Typedef Documentation

◆ big_t

typedef unsigned long long big_t

Definition at line 110 of file enough.c.

◆ code_t

typedef unsigned long long code_t

Definition at line 111 of file enough.c.

Function Documentation

◆ beenhere()

local int beenhere ( int  syms,
int  len,
int  left,
int  mem,
int  rem 
)

Definition at line 258 of file enough.c.

References cleanup(), INDEX, NULL, root, and vec.

Referenced by examine().

◆ cleanup()

local void cleanup ( void  )

Definition at line 182 of file enough.c.

References free(), NULL, size, and vec.

Referenced by beenhere(), vlWin32::Win32Context::initWin32GLContext(), and main().

◆ count()

local big_t count ( int  syms,
int  len,
int  left 
)

Definition at line 203 of file enough.c.

References INDEX, and max.

Referenced by main().

◆ enough()

local void enough ( int  syms)

Definition at line 403 of file enough.c.

References examine(), INDEX, large, max, and root.

Referenced by main().

◆ examine()

local void examine ( int  syms,
int  len,
int  left,
int  mem,
int  rem 
)

Definition at line 322 of file enough.c.

References beenhere(), large, max, and root.

Referenced by enough().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 458 of file enough.c.

References cleanup(), count(), enough(), max, NULL, and root.

Variable Documentation

◆ code

◆ done

local struct tab* done

Definition at line 176 of file enough.c.

◆ large

local int large

Definition at line 172 of file enough.c.

Referenced by enough(), and examine().

◆ max

local int max

◆ num

Definition at line 175 of file enough.c.

◆ root

local int root

◆ size

local size_t size

Definition at line 173 of file enough.c.

Referenced by cleanup().