The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
September 30, 2022, 01:15:48 PM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  General Forums
| |-+  The Campus
| | |-+  Where is ftol2_sse?
« previous next »
Pages: [1] 2 Print
Author Topic: Where is ftol2_sse?  (Read 15933 times)
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Where is ftol2_sse?
« on: December 27, 2010, 06:48:43 AM »

Anyone know where is ftol2_sse function?
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
qWord
Member
*****
Posts: 1425



Re: Where is ftol2_sse?
« Reply #1 on: December 27, 2010, 11:26:31 AM »

sounds like an msvcrt-function. However, you could also do it like:
Code:
movss xmm0,FP4(1.0)
cvtss2si eax,xmm0 ; SSE

; or
movsd xmm0,FP8(1.0)
cvtsd2si eax,xmm0 ; SSE2

qWord
Logged

FPU in a trice: SmplMath
It's that simple!
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Where is ftol2_sse?
« Reply #2 on: December 27, 2010, 01:40:57 PM »

sounds like an msvcrt-function. However, you could also do it like:
Code:
movss xmm0,FP4(1.0)
cvtss2si eax,xmm0 ; SSE

; or
movsd xmm0,FP8(1.0)
cvtsd2si eax,xmm0 ; SSE2

qWord

No, I need the dll. The .lib is linked to that function and I cant patch it.
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
dedndave
Member
*****
Posts: 12523


Re: Where is ftol2_sse?
« Reply #3 on: December 27, 2010, 02:03:15 PM »

it may be included in a newer C compiler or VS package, Onan
another place you might look is a newer directX SDK
Logged
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Where is ftol2_sse?
« Reply #4 on: December 28, 2010, 06:51:22 AM »

it may be included in a newer C compiler or VS package, Onan
another place you might look is a newer directX SDK

I'll try it.
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
GregL
Member
*****
Gender: Male
Posts: 1897



Re: Where is ftol2_sse?
« Reply #5 on: December 28, 2010, 07:44:49 PM »

Farabi,

ftol2_sse is an internal C function that is called when a cast or conversion is made from a floating point variable to an integer. It was first used in VC 2005 (8.0).  Before that it was ftol_sse and before that ftol.



Logged
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Where is ftol2_sse?
« Reply #6 on: December 30, 2010, 02:26:43 AM »

what is this mean?

Quote
manifestdependency:type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
Antariy
Member
*****
Gender: Male
Posts: 1041


Re: Where is ftol2_sse?
« Reply #7 on: December 30, 2010, 02:39:18 AM »

Anyone know where is ftol2_sse function?

It is in static RTL of modern MSVCs.
Logged
GregL
Member
*****
Gender: Male
Posts: 1897



Re: Where is ftol2_sse?
« Reply #8 on: December 31, 2010, 01:59:46 AM »

Quote from: farabi
what is this mean?

Quote
manifestdependency:type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'"; ignored

That is part of a manifest for the VC++ 2005 (8.0) C Run-Time (CRT) Library. The manifest must be embedded in the executable or included as a separate file to use the library.



Logged
dedndave
Member
*****
Posts: 12523


Re: Where is ftol2_sse?
« Reply #9 on: December 31, 2010, 03:24:33 AM »

i'd like to know the context of that string
it looks like it is in source
where did you see that message, Onan ?
Logged
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Where is ftol2_sse?
« Reply #10 on: December 31, 2010, 02:31:49 PM »

i'd like to know the context of that string
it looks like it is in source
where did you see that message, Onan ?

I saw that message on RadAsm, when I compiled my executable.
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
dedndave
Member
*****
Posts: 12523


Re: Where is ftol2_sse?
« Reply #11 on: December 31, 2010, 02:39:44 PM »

well - i don't understand how it can be ignored - lol
if your program requires that minimum version, then you might want a manifest file
there are some great examples by Edgar, Hutch, and others floating around
forum search tool  ThumbsUp
Logged
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Where is ftol2_sse?
« Reply #12 on: December 31, 2010, 02:44:12 PM »

Okay thanks.
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
GregL
Member
*****
Gender: Male
Posts: 1897



Re: Where is ftol2_sse?
« Reply #13 on: January 01, 2011, 04:10:55 AM »

Farabi,

Are you linking to MSVCR80.DLL?
Logged
Farabi
Neuroscientist Student
Member
*****
Gender: Male
Posts: 2409


MASM+OpenGL Fanatic


Re: Where is ftol2_sse?
« Reply #14 on: January 01, 2011, 05:15:14 AM »

Farabi,

Are you linking to MSVCR80.DLL?


I dont know. I tried to use agar library, it is a OpenGL UI library, and it need that dll.
Logged

Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"
Pages: [1] 2 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!