|
|
| version 1.3, 2003/10/26 08:59:53 | version 1.5, 2011/02/02 13:50:29 |
|---|---|
| Line 1 | Line 1 |
| section .data | |
| randseed dd 1 | |
| section .text | section .text |
| global @rand_setseed@4 | global @rand_setseed@4 |
| Line 15 section .text | Line 11 section .text |
| global @satuation_s16x@12 | global @satuation_s16x@12 |
| global @satuation_s16mmx@12 | global @satuation_s16mmx@12 |
| align 16 | align 16 |
| @rand_get@0: mov eax, [randseed] | @rand_get@0: mov eax, dword [_randseed] |
| imul eax, 343fdh | imul eax, 343fdh |
| add eax, 269ec3h | add eax, 269ec3h |
| mov [randseed], eax | mov dword [_randseed], eax |
| sar eax, 16 | sar eax, 16 |
| ret | ret |
| @rand_setseed@4:mov [randseed], ecx | @rand_setseed@4:mov dword [_randseed], ecx |
| ret | ret |
| align 16 | align 16 |
| Line 137 ss16m_lp: movq mm1, [edx] | Line 132 ss16m_lp: movq mm1, [edx] |
| emms | emms |
| ss16m_ed: ret 4 | ss16m_ed: ret 4 |
| ends | |
| section .data | |
| _randseed dd 1 | |