English
Forum

what are native functions?

 
- Page 1 -



because You still not verständlich declared have, what nprocs are.


Hello Nico,

thanks for Info and the Thread here - unfortunately can I so but nothing begin I not know can, what You do not understand.

Perhaps. can You me under Beachtung the Documentation  [...]  say, what you unclear is.


Inline-Assembler:
 
11/11/09  
 



 
- Page 9 -



Frank
Abbing
iF, Beitrag=55273, Zeitpunkt=30.11.2009
In reinem ASM Yes, in NProcs not absolutely - means rather not because the Operator would aufgelöst what letztendlich not faster his can as add eax,4


Have I do not understood. Why go pure Assemblerzeilen because not directly übernommen?
 
11/30/09  
 




Dietmar
Horn
Hello together,

here time one small demonstration for yet-XPSE-Skeptiker, which 1 million time to a number 1 add and explicit whom Geschwindigkeitsvorteil of nProc to reinem XProfan-code exemplifies:
CompileMarkSeparation
 {$CLEQ}
declare zeit1&,zeit2&,zeit&

nPROC ADDIEREN

    var zahl&=0

    Whileloop 1000000

        add zahl&,1

    EndWhile

    return zahl&

ENDPROC

PROC ADDIERE

    var zahl&=0

    Whileloop 1000000

        add zahl&,1

    EndWhile

    return zahl&

ENDPROC

WindowTitle " Bitte warten ... teste mit nProc von XPSE"
cls
Print ""
zeit1& = &GetTickCount
Print "Schleifendurchläufe: " + str$(ADDIEREN())
zeit2& = &GetTickCount
zeit& = zeit2& - zeit1&
print "Ausführungsgeschwindigkeit mit nProc von XPSE: " + str$(zeit&) + " Millisekunden"
WindowTitle " Bitte warten ... teste mit reinem XProfan"
Print ""
zeit1& = &GetTickCount
Print "Schleifendurchläufe: " + str$(ADDIERE())
zeit2& = &GetTickCount
zeit& = zeit2& - zeit1&
print "Ausführungsgeschwindigkeit mit reinem XProfan: " + str$(zeit&) + " Millisekunden"
SetText %HWnd,"Geschwindigkeitstest beendet!"
waitinput
end

and the swell on it: one needed for none only Assembler-commands.

Greeting
Dietmar

25 kB
Hochgeladen:11/30/09
Downloadcounter61
Download
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
11/30/09  
 




Christian
Schneider
remarkable!

installs Have I XPSE Yes still Schonmal. ;)
will be me soon In any drop time hither so keep busy.

Edit: Musste at testing time a little bit "übertreiben". power the whole In any drop yet deutlicher.

10 kB
Hochgeladen:11/30/09
Downloadcounter106
Download
 
XProfan 11| Vista(64) SP2
11/30/09  
 




Dietmar
Horn
and here for all yet-not-owner the actually Full Version XProfan 11.2a the Testprogramm as Exe-File to that Selberausprobieren.

Greeting
Dietmar

468 kB
Hochgeladen:11/30/09
Downloadcounter76
Download
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
11/30/09  
 




Rolf
Koch
what about me werf now integrally impudent afterwards: who means iF would only one MACHNURSO and WILLGROSSSEIN (had we in the langjährigen Profanszene already often), the irrt GEWALTIG. i'm of Nature one skeptischer human and having then (wisely iF of me already, there we always sincere together write) too virtual: no again of/ one the itself grosstun wants, gell iF
but NEIN! - I stand 100000%ig behind iF, because a.) it menschlich, objectively and not grössenwahnsinnig become is b.) because I each conversation with it dazulerne and c.) I it eigenlich wed wants - LOOOOOL no balderdash!
XPSE is the deliriousness!
 
11/30/09  
 



Werd Yes complete uneasily!
 
12/01/09  
 



@Nico: negatives Floats-bow ( -1.0 ) found, if eliminating then Update! thanks!
 
12/02/09  
 




Nico
Madysa
nothing To thank, I have indeed what of it.
 
Nico Madysa
12/02/09  
 



Update uploaded:  [...]  , too now Float as commands  [...]  and the Arcs ...
 
12/03/09  
 




Nico
Madysa
the Arc; arctan reicht How said. be thereby The Math.inc of Roland for NProcs umzuschreiben, there You can then arccos and arcsin over Ersteres define.
almost importent would though The exp-function and the natural Logarithmus ln (or log). with them You can then namely again some other squeeze out.
 
Nico Madysa
12/03/09  
 




Nico
Madysa
Ah, I have straight seen, that You me ahead bist; in the reference on The Arkusfunktionen.

have you got already for exp something in petto? The Definition The I know, is unfortunately
1) costly (two nested creep) and
2) only näherungsweise validly.

where me straight falls in ...
CompileMarkSeparation
proc Pow

    parameters x!,n&
    var ret! = 1

    whileloop n&

        ret! = ret! * x!

    EndWhile

    return ret!

endproc

proc fakultaet

    parameters n&
    case n& <= 1 : return 1
    return n * fakultaet(n&-1)

endproc

nproc exp  Eulersche Zahl e^x!

    parameters x!
    var e! = 0.0

    whileloop 99999 halt möglichst groß

        e! = e! + Pow(x!,&loop) / fakultaet(&loop)

    EndWhile

    return e!

endproc

 
Nico Madysa
12/03/09  
 



In this "Format" must it letztendlich brought go:
CompileMarkSeparation
the one arccos etc divert can, is me already clear. nevertheless have I The "Formeln" again optimiert and each extra a Constant reserved because abgeleitete functions are explicit slower as optimierter FPU-ASM and we're in the Funktionsanzahl not dull.

in example reserviere I still rather einmalig global
CompileMarkSeparation
__xeTF_00 dq 0.0
__xeTF_01 dq 1.0
__xeTF_02 dq 1.57079632679489656
__xeTF_03 dq 0.01745329251994329
__xeTF_04 dq 57.29577951308232087
as per Funktionsaufruf jedesmal pi/180 To calculate.
 
12/03/09  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

41.256 Views

Untitledvor 0 min.
p.specht11/15/18
Ernst07/02/16
funkheld04/11/16
HofK01/26/16
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie