- Timestamp:
- Feb 4, 2014, 12:24:16 PM (11 years ago)
- Location:
- trunk/softs
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/giet_tsar/stdio.c
r622 r626 126 126 { 127 127 return (unsigned int)(NB_PROCS_MAX * X_SIZE * Y_SIZE); 128 } 129 //////////////////////////////////////////////////////////////////////////////////////// 130 // Returns pseudo-random number 131 //////////////////////////////////////////////////////////////////////////////////////// 132 in_drivers unsigned int _rand() 133 { 134 unsigned int x = _proctime(); 135 if((x & 0xF) > 7) 136 return (x*x & 0xFFFF); 137 else 138 return (x*x*x & 0xFFFF); 128 139 } 129 140 //////////////////////////////////////////////////////////////////////////////////////// -
trunk/softs/giet_tsar/stdio.h
r622 r626 63 63 unsigned int _procnumber(); 64 64 65 unsigned int _rand(); 66 65 67 void _it_mask(); 66 68 void _it_enable();
Note: See TracChangeset
for help on using the changeset viewer.