Commit graph

34 commits

Author SHA1 Message Date
Wally4000
ca75f74035 Tidy up some Windows exclusive stuff 2024-07-04 09:37:31 +10:00
Wally4000
0ad0fe5314 Remove std::move from Vector 2023-06-22 17:36:44 +10:00
Wally4000
b688456fbd Use builtins for random function 2023-04-24 15:51:14 +10:00
Wally4000
4aaec305d2 Silence some Warnings 2023-04-20 06:45:47 +10:00
Wally
9fe0d7666f Use modern alignas specifier 2022-06-19 13:55:08 +10:00
Wally
2e15beada7 Clean up Math.h 2022-06-18 19:10:42 +10:00
Wally4000
894db59619 Whoops missing else. 2022-04-12 16:19:03 +10:00
Wally4000
875da0a47a Remove std:: math stuff for now.. 2022-04-12 16:13:45 +10:00
Wally4000
cf97fa6fc1 Add Common Math from STL for Posix 2022-04-01 15:20:51 +11:00
Wally4000
b1e6ac01da Adding in some std:: functions to replace some templates 2021-10-16 22:54:18 +11:00
Wally4000
15e3e2a1d0 Update to the Bazel Directory Structure.. 2020-08-22 18:42:41 +10:00
Ben Slater
cac4b9c0ed Removed some missed asserts 2019-05-07 10:36:10 +10:00
Ben Slater
e352361984 Added -WExtra
zmatt assisted with fixing the math.h problem replacing the whole thing with 1 line
2019-05-07 08:57:08 +10:00
Ben Slater
c562b76641 *Clean build from StrmnNrmns repo 2019-02-27 17:04:51 +11:00
Wally
aa1b535248 Modified a few files so we can at least get to 50% build in cmake 2019-01-15 08:03:46 +11:00
salvy
804094c1af [!] Fixed W32 build, also a couple of warnings
[!] Handle better platform differences with sqrtf, roundf etc
2013-11-13 00:47:50 -08:00
CornN64
85accc910d [!] Some minor fixes 2013-11-04 18:24:30 +01:00
CornN64
47a1d7c67a [!] more optimization of VFPU triangle cull test
[-] removed VFPU code for dot in V3 and V4
2013-08-26 20:53:47 +02:00
CornN64
0a9a6bb2ce [!] Some tidy and small optimizations in VFPU ASM TnL
[+] Added TnL VFPU ASM for Zelda MM point lighting
[+] Added calculations in VFPU ASM for back/front culling triangles
2013-08-24 20:34:02 +02:00
Paul Holden
49a06ed319 [~] Make header guards consistently use FULL_PATH_TO_FILE_H_, with script 2013-06-04 22:02:30 +01:00
strmnnrmn
1e282772ca [~] Add a SinCos function to unify a bit of PSP code
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1639 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:35:51 +00:00
strmnnrmn
5a3eac9f7d [~] Might need to fix this - PSP Round() returns an int, OSX version returns a float. Need to look at where it's used and see which makes more sense.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1217 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 14:00:04 +00:00
strmnnrmn
7b37631972 [~] Add a Round function to Math.h, to provide some platform independence for pspFpuRound
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1078 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:52:36 +00:00
strmnnrmn
7257c5f190 [~] Replace uses of pspFpuAbs with an Abs wrapper function (platform independence)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1046 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-20 22:07:34 +00:00
salvy
80c071118c [!] Compile fixes for x86 platform (there's still a few errors left but getting closer)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1039 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-20 17:30:53 +00:00
Corn
fd472f60df [!] PspFastRand() is now just FastRand().
[!] Make sure to invalidate regs when exiting a fragment.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@937 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 21:59:04 +00:00
strmnnrmn
7fba1278a6 Fix more mixed newlines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@850 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:20:28 +00:00
salvy
4536c5c170 By StrmnNrmn : …
Multi-platform:

* Reintroduced a bunch of DAEDALUS_PSP ifdefs.
* Reintroduced a load of Win32/OSX code.
* R4300: To reduce some of the DAEDALUS_PSP ifdefs in R4300.cpp, added some
  defines for R4300_IsNan etc.
* R4300: f32_to_s32_trunc etc. I think we should keep these as they provide some
  abstraction between PSP/OSX/W32 etc and remove tons of ifdefs elsewhere.
  I think I updated all of these correctly. Please check!
* Math/Math.h: we should provide a consistent interface here. e.g. rather than
  exposing pspFpuSqrt(), we should have Sqrt() that's #defined (or a wrapper
  function) to the most appropriate implementation for the platform.

Small improvements:

* Added a few DBGConsole_Msg lines to track down boot errors.
* CPU: gLastPC/gLastAddress were defined as static in CPU.h - that means they'd
  be introduced into all compilation units that pulled in that header. Redefined
  as extern.
* NativeTexture.h - GetScaleX/Y can just return an f32 (no need for reference)
* ROMFileCache: Just declare AddressToChunkMapIndex/GetChunkStartAddress as
  inline functions in the .cpp file.

Tidying:

* Path: Moved IO::Path::Tidy to String.h (it's not really a Path function).
* Lots of whitespace fixes (git doesn't like whitespace at the end of lines)
* Started nuking lots of 'tractor lines' (//*********************)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@840 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-05 20:07:03 +00:00
strmnnrmn
d7d116642a Fix more trailing whitespace (files with CRLF line endings?)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@825 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 23:23:11 +00:00
Corn
3a0c3a4617 [!] small optimization of StoreFPR_Double()
[~] clean up some redundant code in math.h

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@333 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-01 19:20:11 +00:00
Corn
971e6d3bc3 [-] Reverted modifyVTX change (always better to bail as soon as possible)
[+] Optimized ENV mapping (uses VFPU for the normals and CPU for Acos())
[+] some commenting and reordering

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@193 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-19 11:43:21 +00:00
Salvy
8589112152 [!] Replaced swizzle_fast with Raphael's version (Corn)
[~] Code clean ups
[~} Removed usage of pspFpuMin/pspFpuMax
[!] Proper fix for width issues in Lode Runner (removed hack I had for it too)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@184 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-12 12:41:42 +00:00
Salvy
b47e142f20 [!] simplified imposectrl.prx
[~] Reverted changes in ColourAdjuster (generates the same asm as the old version anyways)
[!] Make sure not to mask the buttons (else home won't work)
[!] Do not compile double math funcs (they are unused anyways)
[!] Improved kirby blends

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@22 42e9bfbe-799a-4a2d-bad1-236e862a387a
2010-12-30 23:22:15 +00:00
Salvy
bdbd952c60 [+] Initial repo (based from r630 dx64 branch)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@3 42e9bfbe-799a-4a2d-bad1-236e862a387a
2010-12-24 04:37:41 +00:00