1. Double trouble

I have a new version of EuGtk which runs on both 32 and 64-bit processors (at least the ones that I own), using Euphoria 4.1.0. Download EuGTK4.6.0: https://sites.google.com/site/euphoriagtk/

There remains one problem. A few GTK routines require 6 or 7 doubles to be passed to them. The 32-bit version of Eu 4.1 handles this just fine, but the 64-bit goes astray. Here's a test to show what happens:

// dbl.c 
 
#include <stdio.h> 
 
void display_double(double d1, double d2, double d3, double d4, double d5, double d6) 
{  
	printf("One %g\n",d1); 
	printf("Two %g\n",d2); 
	printf("Three %g\n",d3); 
	printf("Four %g\n",d4); 
	printf("Five %g\n",d5); 
	printf("Six %g\n",d6); 
} 

--dbl.ex 
 
include std/machine.e 
include std/dll.e 
 
atom lib = open_dll("./dbl.so") 
 
atom fn = define_c_proc(lib,"displaydouble",{C_DOUBLE,C_DOUBLE,C_DOUBLE,C_DOUBLE,C_DOUBLE,C_DOUBLE}) 
 
c_proc(fn,{1.1,1.2,1.3,1.4,1.5,1.6}) 

Eu 4.1.0 in 64-bit version prints a bogus value for Six. Fortunately, this problem only affects a couple of Cairo graphic routines.

new topic     » topic index » view message » categorize

2. Re: Double trouble

irv said...

I have a new version of EuGtk which runs on both 32 and 64-bit processors (at least the ones that I own), using Euphoria 4.1.0. Download EuGTK4.6.0: https://sites.google.com/site/euphoriagtk/

There remains one problem. A few GTK routines require 6 or 7 doubles to be passed to them. The 32-bit version of Eu 4.1 handles this just fine, but the 64-bit goes astray.

I'm not terribly surprised. I'll take a look at what it's doing.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: Double trouble

mattlewis said...
irv said...

I have a new version of EuGtk which runs on both 32 and 64-bit processors (at least the ones that I own), using Euphoria 4.1.0. Download EuGTK4.6.0: https://sites.google.com/site/euphoriagtk/

There remains one problem. A few GTK routines require 6 or 7 doubles to be passed to them. The 32-bit version of Eu 4.1 handles this just fine, but the 64-bit goes astray.

I'm not terribly surprised. I'll take a look at what it's doing.

Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).

Matt

new topic     » goto parent     » topic index » view message » categorize

4. Re: Double trouble

mattlewis said...

Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).

Matt

erm... when I download this I get 512 bytes. It gets blocked somewhere, probably because the name's too long, since I can download the other files at that location no problem.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Double trouble

irv said...
mattlewis said...

Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).

Matt

erm... when I download this I get 512 bytes. It gets blocked somewhere, probably because the name's too long, since I can download the other files at that location no problem.

I just tried it and it downloads fine for me.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Double trouble

jimcbrown said...
irv said...
mattlewis said...

Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).

Matt

erm... when I download this I get 512 bytes. It gets blocked somewhere, probably because the name's too long, since I can download the other files at that location no problem.

I just tried it and it downloads fine for me.

Just in case, I've put it up at an alternative location. (For anyone who is not irv - please try the SF link first.)

http://malcom.unkmar.com/lostsouls/euphoria-4.1.0-Linux-ix86_64-2012-05-30-cbe08aedf560.tar.gz

new topic     » goto parent     » topic index » view message » categorize

7. Re: Double trouble

jimcbrown said...
mattlewis said...

Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).

Just in case, I've put it up at an alternative location. (For anyone who is not irv - please try the SF link first.)

Just to be clear, the link I posted is hosted right here on openeuphoria.org. And it also works for me.

Matt

new topic     » goto parent     » topic index » view message » categorize

8. Re: Double trouble

mattlewis said...
jimcbrown said...
mattlewis said...

Looks like we weren't using all of the registers correctly. New 4.1 64-bit eubin (13MB).

Just in case, I've put it up at an alternative location. (For anyone who is not irv - please try the SF link first.)

Just to be clear, the link I posted is hosted right here on openeuphoria.org. And it also works for me.

Matt

Oops, sorry. Please try the openeuphoria.org link first, in that case. :) Also available in zip format.

http://malcom.unkmar.com/lostsouls/euphoria-4.1.0-Linux-ix86_64-2012-05-30-cbe08aedf560.zip

new topic     » goto parent     » topic index » view message » categorize

9. Re: Double trouble

It's apparently blocked by the school. I got it from the other location. THANKS!

Request denied by WatchGuard HTTP proxy. 
Reason: reputation 
Method: GET 
Host: openeuphoria.org 
Path: /eubins/linux/4.1.0/64-bit/euphoria-4.1.0-Linux-ix86_64-2012-05-30-cbe08aedf560.tar.gz  

(I didn't know we had a reputation :{ }

new topic     » goto parent     » topic index » view message » categorize

10. Re: Double trouble

irv said...

It's apparently blocked by the school. I got it from the other location. THANKS!

Request denied by WatchGuard HTTP proxy. 
Reason: reputation 
Method: GET 
Host: openeuphoria.org 
Path: /eubins/linux/4.1.0/64-bit/euphoria-4.1.0-Linux-ix86_64-2012-05-30-cbe08aedf560.tar.gz  

(I didn't know we had a reputation :{ }

I took a look at WatchGuard's site, and queried their reputation database, and they don't appear to have anything about this site, so our reputation is listed as "neutral," which makes sense to me. Assuming that you're posting to the forum through their network, I suspect there's some higher threshold set for downloading large files...or something like that.

Or maybe the local administrator has some custom settings applied.

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu