Commit graph

40 commits

Author SHA1 Message Date
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
bfd94b655c [!] Some WIP for vertex fog on PSP (functions on many games that uses the standard TnL. It uses a second pass to blend in the fog)
[-] Reverted some changes from previous commit since it broke texturing in some games and CBFD lights.
2013-09-21 18:31:48 +02:00
salvy
59052f047a [!} Optimization to Conker's light (PC/OSX)
[!] Aligned v2, we can copy 2d vectors more efficiently
2013-09-19 23:28:24 -07: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
df3b1682c3 [~] Include Alignment.h where it's needed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1700 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-19 08:52:32 +00:00
strmnnrmn
5366827789 [~] stdafx cleanup: Start adding DaedalusTypes.h where needed.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1696 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-05-18 16:06:16 +00:00
strmnnrmn
1e88ddbf48 [+] Add a Matrix4x4::SetTranslate function
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1640 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-27 16:35:56 +00: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
6543f50650 [~] 64 bit fix for MathUtil.h
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1523 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-04-05 13:01:55 +00:00
salvy
ff44ce2c0e [!] Some clean ups to deprecate poking the projection stack, and some other small clean ups
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1251 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-10 22:50:41 +00:00
strmnnrmn
c50d4da386 [~] compile fix - rename a couple of functions I missed
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1222 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 14:00:45 +00:00
strmnnrmn
28f63547e9 [~] Implement the MatrixMultiply functions on non-PSP platforms, and remove a bunch of ifdefs.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1221 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-09 14:00:38 +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
253b9612fc [~] Feels nicer to have these template functions explicitly marked as inline.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1167 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-05 20:26:34 +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
5a891af54c [~] malloc.h doesn't need to be included (not present on OSX)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1068 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:51:21 +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
0e698c385d Fix all the remaining mixed newlines
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@852 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:21:04 +00:00
strmnnrmn
ba29dea5cc Fix line endings - mostly LF with a dash of CRLF
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@851 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:20:44 +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
strmnnrmn
767e4efd9c Fix line endings
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@822 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 22:11:57 +00:00
Salvy
b1cbbba3b7 [+] Add back compile option to disable VFPU (Note : Not all VFPU code is suppressed yet)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@419 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-09-29 03:52:33 +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