LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-06-2010, 08:32 PM   #1
zeromachine
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
Talking fpclass on Linux HELP!!!


Hi, I'm porting code from Win32 to Linux, a math science app, the thing is that the app have full dependency of de win32 function _fpclass().

Today I was looking all day that function on Linux but it doesn't exist.

I know that there are some functions that can make the job mixing them in a other one like in this link below, more or less.

http://www.macaulayenterprises.net/f...3.0-README.txt

Well the app use very high virtual memory, Gigas of it(around 500), the idea is to use Linux as Calculation Server using a very large swap space.

If we can't find some way to fix this trouble, we can change the Linux for some open *nix like Open Solaris, because those have fp_class_l().

Thank you very much and sorry for my bad english, I'm not native.
 
Old 04-07-2010, 12:17 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by zeromachine View Post
Hi, I'm porting code from Win32 to Linux, a math science app, the thing is that the app have full dependency of de win32 function _fpclass().

Today I was looking all day that function on Linux but it doesn't exist.

I know that there are some functions that can make the job mixing them in a other one like in this link below, more or less.

http://www.macaulayenterprises.net/f...3.0-README.txt

Well the app use very high virtual memory, Gigas of it(around 500), the idea is to use Linux as Calculation Server using a very large swap space.

If we can't find some way to fix this trouble, we can change the Linux for some open *nix like Open Solaris, because those have fp_class_l().

Thank you very much and sorry for my bad english, I'm not native.
From quick WEB search I understand that the function is used to classify long doubles.

First of all, does your Linux box support long doubles ? If it does, can you yourself write the needed function ?
 
Old 04-07-2010, 01:06 AM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Look in "math.h": fpclassify() and friends:

http://www.linuxquestions.org/questi...4/#post3927053

Unfortunately, you will have to do a bit of porting work. Nothing complicated, but a hassle nonetheless...
 
Old 04-07-2010, 01:13 AM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
You may want to have a look at what the wine chaps have done. A quick google led me to this page You might be able to reuse what they have done.
 
Old 04-07-2010, 04:17 PM   #5
zeromachine
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thank all of you , I think that I will adapt the version of _fpclass() of wine, is the better way for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Training Tips - Boot Linux from a Linux Installation CD or a Linux Live CD to L beibei Linux - General 1 10-29-2009 04:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration