… | |
… | |
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 */ |
… | |
… | |
865 | NV floor (NV x) |
866 | NV floor (NV x) |
866 | |
867 | |
867 | NV ceil (NV x) |
868 | NV ceil (NV x) |
868 | |
869 | |
869 | IV minpot (UV n) |
870 | IV minpot (UV n) |
|
|
871 | |
|
|
872 | UV ld32 (UV n) |
|
|
873 | CODE: |
|
|
874 | RETVAL = ecb_ld32 (n); |
|
|
875 | OUTPUT: |
|
|
876 | RETVAL |
870 | |
877 | |
871 | IV popcount (UV n) |
878 | IV popcount (UV n) |
872 | CODE: |
879 | CODE: |
873 | RETVAL = ecb_popcount32 (n); |
880 | RETVAL = ecb_popcount32 (n); |
874 | OUTPUT: |
881 | OUTPUT: |