ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.331 by root, Mon Nov 19 00:10:34 2018 UTC vs.
Revision 1.334 by root, Mon Nov 19 01:37:28 2018 UTC

77# include <netinet/tcp.h> 77# include <netinet/tcp.h>
78# include <inttypes.h> 78# include <inttypes.h>
79#endif 79#endif
80 80
81#include "ecb.h" 81#include "ecb.h"
82#include "salloc.h"
82 83
83#define OBJ_STR "\xef\xbf\xbc" /* U+FFFC, object replacement character */ 84#define OBJ_STR "\xef\xbf\xbc" /* U+FFFC, object replacement character */
84 85
85/* this is used as fow flag as well, so has to have a different value */ 86/* this is used as fow flag as well, so has to have a different value */
86/* then anything that is computed by incoming darkness */ 87/* then anything that is computed by incoming darkness */
454 { 455 {
455 return tile == o.tile && x == o.x && y == o.y && level == o.level; 456 return tile == o.tile && x == o.x && y == o.y && level == o.level;
456 } 457 }
457}; 458};
458 459
459typedef ska::flat_hash_map<smooth_key, IV> smooth_hash; 460typedef ska::flat_hash_map<smooth_key, IV, std::hash<smooth_key>, std::equal_to<smooth_key>, slice_allocator<smooth_key>> smooth_hash;
460 461
461namespace std { 462namespace std {
462 template <> 463 template <>
463 struct hash<smooth_key> 464 struct hash<smooth_key>
464 { 465 {
865NV floor (NV x) 866NV floor (NV x)
866 867
867NV ceil (NV x) 868NV ceil (NV x)
868 869
869IV minpot (UV n) 870IV minpot (UV n)
871
872UV ld32 (UV n)
873 CODE:
874 RETVAL = ecb_ld32 (n);
875 OUTPUT:
876 RETVAL
870 877
871IV popcount (UV n) 878IV popcount (UV n)
872 CODE: 879 CODE:
873 RETVAL = ecb_popcount32 (n); 880 RETVAL = ecb_popcount32 (n);
874 OUTPUT: 881 OUTPUT:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines