Math dlls? (fwd)

I think the best solution would be to document various speed ups, and even
provide headers with macros implementing the changes, but these sort of
things should be compiled in – not in a library.

I agree.

btw, I’m happy to write C and PPC-asm versions of anything you want –
when I get SDL working on linux-pmac.

Aye, there’s the rub. :slight_smile:
I think it’s time to send a little e-mail to the author of LinuxThreads. :slight_smile:

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/projects/SDL/

have you ever thought about writing a math.dll to incorperate into your
SDL??
i think this would be even a little more helpful so that even apps/games
that arent using DirectX6 or writing special routines would be able to
take advantage of the newer math instructions found in the K6 3D, and in
Katmai, and the new IDT WinChips.

I don’t have enough experience working with machine language or math
to do this properly. Right now SDL is reliant upon the compilers available
for the platforms it supports, most of which don’t support the very latest
chipset-dependent extensions.

Probably the biggest issue is what to include in the library. If we put
int add(int a, int b); in the library it’s gonna be slow and pointless; if
we put
void computeGreenManSpriteMovement(double t, double* x, double* y);

We might be able to use it at optimal speed on various platforms, but so
what?.

What sort of functions would sdl-m.so include? Matrix multiplication?
perhaps; FFT? pausible. dot product? forget it.

I think the best solution would be to document various speed ups, and even
provide headers with macros implementing the changes, but these sort of
things should be compiled in – not in a library.

What would be much more useful to game programmers is a decent profiler.

btw, I’m happy to write C and PPC-asm versions of anything you want –
when I get SDL working on linux-pmac.

njhOn Fri, 3 Apr 1998, Sam Lantinga wrote:

I think the best solution would be to document various speed ups, and even
provide headers with macros implementing the changes, but these sort of
things should be compiled in – not in a library.

I agree.

Me three :slight_smile:

btw, I’m happy to write C and PPC-asm versions of anything you want –
when I get SDL working on linux-pmac.

Aye, there’s the rub. :slight_smile:
I think it’s time to send a little e-mail to the author of LinuxThreads. :slight_smile:

Well, if it’s any consolation, SDL 0.5 compiled without trouble on
LinuxPPC… As for it actually working…

Nathan: Time to show your stuff with PPC ASM, and write a clone.S for PPC
:slight_smile:

Michael Samuel,

Surf-Net City - Internet Cafe and Internet Service Providers
Phone: +61 3 9593-9977
E-Mail:
WWW: http://www.surfnetcity.com.au/~michael/On Fri, 3 Apr 1998, Sam Lantinga wrote:

Date: Fri, 3 Apr 1998 16:12:33 -0800
From: Sam Lantinga
Reply-To: sdl at surfnetcity.com.au
To: sdl at surfnetcity.com.au
Subject: Re: math dlls? (fwd)