00001 #ifndef __SYS_TASKS_H__ 00002 #define __SYS_TASKS_H__ 00003 00004 /* 00005 Copyright (c) 2006-2010 Trevor Williams 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by the Free Software 00009 Foundation; either version 2 of the License, or (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00012 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 See the GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License along with this program; 00016 if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00029 void sys_task_srandom( 00030 long seed 00031 ); 00032 00034 long sys_task_random( 00035 long* seed 00036 ); 00037 00039 unsigned long sys_task_urandom( 00040 long* seed 00041 ); 00042 00044 unsigned long sys_task_urandom_range( 00045 unsigned long max, 00046 unsigned long min 00047 ); 00048 00050 uint64 sys_task_realtobits( 00051 double real 00052 ); 00053 00055 double sys_task_bitstoreal( 00056 uint64 u64 00057 ); 00058 00060 uint32 sys_task_shortrealtobits( 00061 float real 00062 ); 00063 00065 float sys_task_bitstoshortreal( 00066 uint32 u32 00067 ); 00068 00070 double sys_task_itor( 00071 int ival 00072 ); 00073 00075 int sys_task_rtoi( 00076 double real 00077 ); 00078 00080 void sys_task_store_plusarg( 00081 const char* arg 00082 ); 00083 00085 ulong sys_task_test_plusargs( 00086 const char* arg 00087 ); 00088 00093 ulong sys_task_value_plusargs( 00094 const char* arg, 00095 vector* vec 00096 ); 00097 00099 void sys_task_dealloc(); 00100 00101 #endif 00102