Guest User

Untitled

a guest
Jul 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. template< typename Allocator >
  2. inline wrekWindowsAmd64Sse2::String< char, Allocator > Convert< __int64, wrekWindowsAmd64Sse2::String< char, Allocator > >::Linear( const __int64& rhs ) const
  3. {
  4. __int64 stackTop0;
  5. __int64 stackTop1;
  6. __int64 stackTop2;
  7. wrekWindowsAmd64Sse2::String< char, Allocator > string;
  8.  
  9. if( rhs )
  10. {
  11. stackTop0 = rhs & 0x7FFFFFFFFFFFFF;
  12. stackTop1 = stackTop0;
  13. stackTop2 = rhs >> 0x3F;
  14.  
  15. for( ; stackTop1; stackTop1 /= 10 )
  16. {
  17. stackTop2++;
  18. }
  19.  
  20. string.Assure( stackTop2 );
  21.  
  22. for( ; stackTop0; stackTop /= 10 )
  23. {
  24. string[ --stackTop2 ] = '0' + stackTop % 10;
  25. }
  26.  
  27. if( stackTop2 )
  28. {
  29. string[ --stackTop2 ] = '-';
  30. }
  31. }
  32. else
  33. {
  34. string.Append( '0' );
  35. }
  36.  
  37. return string;
  38. }
Add Comment
Please, Sign In to add comment