Commit Graph

4914 Commits

Author SHA1 Message Date
MattSherman 46fdb5bc79 This was SVN commit r5949. 2008-05-13 02:13:16 +00:00
MattSherman 65b9a4b6b4 This was SVN commit r5948. 2008-05-13 01:51:46 +00:00
MattSherman 885d58126a This was SVN commit r5947. 2008-05-13 01:47:12 +00:00
janwas b429c492ff (hopefully correctly) port the new os_cpu functions to Linux and OSX
the OSX port lacks thread affinity (too complex, can't test), but a link
to the API documentation is included.

This was SVN commit r5946.
2008-05-12 18:38:48 +00:00
janwas ffdff6888d add NUMA and shared-L2-cache detect code (required at work)
enable most of IA-32 specific code to be used in amd64 (resides in
directory lib/sysdep/x86_x64)

bits: add IsBitSet
remove mem_PageSize (use os_cpu_PageSize instead)
cpuid: change interface to allow gracefully supporting later
subfunctions that require input parameters
amd64_asm.asm: add amd64 implementation of cpuid
cpu: move functions provided by OS to sysdep/os_cpu.cpp
cpu topology: avoid trouble when process affinity is set by remapping
processor numbers to 0..PopulationCount(processAffinity)
topology.cpp: move ex-ia32 topology code here.

This was SVN commit r5945.
2008-05-12 18:15:08 +00:00
Mythos_Ruler 7152e4a3e6 This was SVN commit r5944. 2008-05-12 05:20:45 +00:00
MattSherman f201dc0c30 This was SVN commit r5943. 2008-05-11 18:56:16 +00:00
janwas c0ed950657 had to remove uint and ulong from lib/types.h due to conflict with other library.
this snowballed into a massive search+destroy of the hodgepodge of
mostly equivalent types we had in use (int, uint, unsigned, unsigned
int, i32, u32, ulong, uintN).

it is more efficient to use 64-bit types in 64-bit mode, so the
preferred default is size_t (for anything remotely resembling a size or
index). tile coordinates are ssize_t to allow more efficient conversion
to/from floating point. flags are int because we almost never need more
than 15 distinct bits, bit test/set is not slower and int is fastest to
type. finally, some data that is pretty much directly passed to OpenGL
is now typed accordingly.

after several hours, the code now requires fewer casts and less
guesswork.

other changes:
- unit and player IDs now have an "invalid id" constant in the
respective class to avoid casting and -1
- fix some endian/64-bit bugs in the map (un)packing. added a
convenience function to write/read a size_t.
- ia32: change CPUID interface to allow passing in ecx (required for
cache topology detection, which I need at work). remove some unneeded
functions from asm, replace with intrinsics where possible.

This was SVN commit r5942.
2008-05-11 18:48:32 +00:00
Sam Assoum 9951af47c7 This was SVN commit r5939. 2008-05-09 23:31:31 +00:00
xrenmilay 07cacef845 This was SVN commit r5937. 2008-05-09 17:20:27 +00:00
Mythos_Ruler a164dfa14c This was SVN commit r5927. 2008-05-08 20:20:09 +00:00
Mythos_Ruler 6d28f12c25 This was SVN commit r5924. 2008-05-08 04:45:14 +00:00
Mythos_Ruler 66dbb059ea This was SVN commit r5923. 2008-05-08 04:13:49 +00:00
MattSherman 690d33d5e8 This was SVN commit r5922. 2008-05-08 00:42:18 +00:00
MattSherman 191c05864e This was SVN commit r5921. 2008-05-08 00:30:04 +00:00
MattSherman 8b572bca35 This was SVN commit r5920. 2008-05-08 00:11:31 +00:00
MattSherman 5a0403b083 Fixed waterfall_31.ogg loop, and adjusted overall levels of water sounds to be clear and consistant with eachother
This was SVN commit r5919.
2008-05-07 23:14:20 +00:00
Ykkrosh 500e22ab6f Updated svn:ignore for some auto-generated files
This was SVN commit r5917.
2008-05-07 23:04:46 +00:00
MattSherman 547c9d4017 This was SVN commit r5916. 2008-05-07 23:00:39 +00:00
MattSherman 489f5bf3ed This was SVN commit r5915. 2008-05-07 22:53:30 +00:00
MattSherman b78cd2806f This was SVN commit r5914. 2008-05-07 22:47:51 +00:00
Mythos_Ruler 6fe0c0d7a3 This was SVN commit r5913. 2008-05-07 22:10:31 +00:00
Mythos_Ruler 08e8011960 This was SVN commit r5912. 2008-05-07 07:42:15 +00:00
Mythos_Ruler 7466c60302 This was SVN commit r5911. 2008-05-07 07:38:16 +00:00
MattSherman 364481443e This was SVN commit r5910. 2008-05-06 04:16:15 +00:00
MattSherman 50c1770f35 This was SVN commit r5909. 2008-05-06 04:09:04 +00:00
MattSherman 9ffb6960e5 This was SVN commit r5908. 2008-05-05 03:10:17 +00:00
MattSherman 39f4414f26 This was SVN commit r5907. 2008-05-05 03:04:15 +00:00
MattSherman 7a119c4cee This was SVN commit r5906. 2008-05-05 01:07:43 +00:00
MattSherman 8877ef5bcd This was SVN commit r5905. 2008-05-05 00:56:09 +00:00
Sam Assoum 772b59a10c This was SVN commit r5904. 2008-05-04 23:43:23 +00:00
Sam Assoum 00707af3ee This was SVN commit r5903. 2008-05-04 20:11:21 +00:00
Sam Assoum e6e47396ba This was SVN commit r5902. 2008-05-04 19:24:37 +00:00
Sam Assoum c59ed94bde This was SVN commit r5901. 2008-05-04 18:31:54 +00:00
Sam Assoum 6382cb2989 This was SVN commit r5900. 2008-05-04 06:37:50 +00:00
janwas cc243f67eb fixes/improvements made at work:
- fix lots of 64-bit warnings
- round_up/down now templates
- avoid warning with definition of byte swap functions; remove
duplication of that in wsdl
- codec_zlib.cpp: avoid domination warning
- vfs/file_cache: VFS is now responsible for handling zero-length files
(no longer considered an error; just returns zero pointer and size=0)
- cpu: export all functions (thus obviating cpu_memcpy_thunk). this
required renaming asm functions and adding thunk functions that call
them
- winit: fix segment merge statement, reinstate /include (otherwise init
functions are stripped by linker)
- wstartup: VC CRT init section definitions have changed in amd64 build;
match their definition
- wsysdep.cpp: more descriptive text for osError = 0

This was SVN commit r5899.
2008-05-01 15:41:42 +00:00
Matei 3892f03e2e Use windowed mode by default.
This was SVN commit r5898.
2008-04-27 18:09:09 +00:00
Mythos_Ruler 6b2e37f2c7 This was SVN commit r5897. 2008-04-24 06:48:14 +00:00
janwas a915bdc1b6 fix problems related to 64-bit compilation in lib
. dbghelp is now pulled in by a separate external_libraries header
. disable _SECURE_SCL (improves perf)
. amd64: initial implementation of essential functions, not yet complete
. manifest: disabled on ICC because its IPO module incorrectly
interprets /manifestdependency
. wdbg_sym: no longer support stack walks on non-ia32 win2k (avoids
trouble due to mixing SEH and dtors)
. winit and wstartup: had to remove forced symbol include - does not
link otherwise on ICC (for reasons unknown). function pointers are
actually included and called on x64 windows (compiling with MSC)

This was SVN commit r5895.
2008-04-19 18:10:00 +00:00
janwas de9cfc6592 bucket: all routines exported, add bucket_fast_alloc
This was SVN commit r5894.
2008-04-19 17:35:28 +00:00
xrenmilay 68cc62e6b9 This was SVN commit r5892. 2008-04-17 02:52:30 +00:00
xrenmilay f6dedfa6f5 This was SVN commit r5891. 2008-04-17 02:41:04 +00:00
xrenmilay f83ed02dc2 This was SVN commit r5890. 2008-04-16 22:36:01 +00:00
xrenmilay fe73879a01 This was SVN commit r5889. 2008-04-16 22:16:31 +00:00
Ykkrosh e76a15d19d Fixed unused argument warning.
Trying post-commit hook again: fixed #194.

This was SVN commit r5885.
2008-04-15 13:49:08 +00:00
Ykkrosh 00cdb335c6 Skip standalone document declaration in generated XML, since it's pointless.
Unrelated to this checkin, fixed #194.

This was SVN commit r5884.
2008-04-15 13:45:17 +00:00
janwas 7d82d87ce8 [requires workspace rebuild due to added directory]
replace ONCE with direct calls to ScriptingInit in simulation/network
code as well.
note: GameSetup is now responsible for calling ServerSession's init
instead of Server doing it

added simulation/scripting with a module that takes care of all
scripting init (reduces CCD)

This was SVN commit r5883.
2008-04-13 14:50:11 +00:00
janwas 9cde0f45b7 remove some DLLs from the delayload list that shouldn't be there (DL doesn't make sense)
[this is a good time because the next commit requires workspace rebuild
anyway]

This was SVN commit r5882.
2008-04-13 14:48:10 +00:00
Mythos_Ruler 59db469f0f This was SVN commit r5881. 2008-04-11 06:22:59 +00:00
MattSherman 2fda078fcc Started making wood construction sounds more detailed by adding layers
This was SVN commit r5879.
2008-04-11 05:11:08 +00:00