It is currently Wed Jan 20, 2021 4:42 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How use 64bit memory space
PostPosted: Wed Aug 06, 2014 12:17 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jan 12, 2004 11:40 pm
Posts: 777
Location: Okazaki, JAPAN
I want to convert 64bit process. Now, Allocate memory size 8GB crushed.

32bit process
Code:
Procedure LPF201(*buffer_audio_ptr, *lpf_table_ptr, *out_buffer_ptr)
  ;/ http://forum.purebasic.com/english/viewtopic.php?f=35&t=47679
  ; Thanks "Wilbert in Netherlands"
  !MOV Ecx, [p.p_lpf_table_ptr]
  !MOV Edx, [p.p_buffer_audio_ptr]
  !SUB Edx, 800
  !PXOR xmm2, xmm2
 
  !MOV Eax, 201
  !align 4
  !SincInterLoop3:
 
  !movq xmm0, [Ecx] ; sinc
  !movlhps xmm0, xmm0
  !cvtps2pd xmm1, [Edx] ; L + R
  !mulpd xmm1, xmm0
  !ADDPD xmm2, xmm1
  !ADD Ecx, 8
  !ADD Edx, 8
 
  !DEC Eax
  !JNZ SincInterLoop3
 
  !cvtpd2ps xmm2, xmm2
  !MOV Edx, [p.p_out_buffer_ptr]
  !movq [Edx], xmm2
EndProcedure


Thank you


Top
 Profile  
Reply with quote  
 Post subject: Re: How use 64bit memory space
PostPosted: Wed Aug 06, 2014 12:21 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3710
Location: Netherlands
Changing all Ecx to Rcx and Edx to Rdx should be enough.

_________________
macOS 10.15 Catalina, Windows 10


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye