Hello friends,
I'd like to ask you if the following code is ok.
It uses altivec extensions under GCC AmigaOS4 compiler/SDK.
I'm using AmigaOS under Winuae and can't test Altivec code :-(
I'd like to focus you in the following line: "if (vec_all_gt (vec_add (zi2, zr2), maxdist)) break;"
I know vectors comparisions are bit strange and in some others examples in internet I find other more complex ways to make same job using masking tecniques.
Hi everybody,
it's first time I write in this forum, after many years of other interests I'm coming back to coding under amigaos :-)
I'm just developing further an old amigaos program targeting it for OS4.1
I want use altivec extensions because I'd like to speedup thinghs and use program also for bench purposes..
Sadly I got a lot of problems compiling it with altivec extensions, so tryng to understand how stuff works I came back to a much simpler program like this:
I'm porting a piece of C code which uses math functions like floorf(), powf(), expf(), logf(), roundf() etc. I don't see these declared anywhere in our SDK - so how would I best go about compiling the code? Any tips appreciated!
Hi, I just dl'ed AmiDog's FPSE-SDK (plugins) and trying to recompile with latest SDK and GCC 5. Almost no buig issues, just suome deprecated functions, but it stops here (removing from main makefile -Werror "solves" it), but is there a "proper" way to "fix" such problem (by casting or dunot whatelse):
I've always assumed that a C compiler (like gcc) compiles all functions, including those that you never call. Is it so?
I'm thinking of a situation where I have a .h file containing three independent functions: funcA(), funcB(), and funcC(). In the main program I call the functions funcA() and funcB() but never the function funcC().
Is the compiler smart enough to not compile the unused function, i.e. leave it out from the object file, or do I have to use #ifdef and #define to exclude the unused function?