| 1 |
|
| #define PERL_NO_GET_CONTEXT |
| 2 |
|
| #include "EXTERN.h" |
| 3 |
|
| #include "perl.h" |
| 4 |
|
| #include "XSUB.h" |
| 5 |
|
| #include <city.cc> |
| 6 |
|
| |
| 7 |
|
| MODULE = Archive::SCS::CityHash PACKAGE = Archive::SCS::CityHash |
| 8 |
|
| |
| 9 |
|
| SV * |
| 10 |
|
| cityhash64_(sv) |
| 11 |
|
| SV * sv |
| 12 |
|
| PROTOTYPE: $ |
| 13 |
|
| CODE: |
| 14 |
|
| STRLEN len; |
| 15 |
0 |
| const char *buf = SvPVbyte(sv, len); |
| 16 |
0 |
▶ | uint64 cityhash_int = CityHash64(buf, len); |
Branch: 1 branch
| Branch | True | False | Total |
| uint64 cityhash_int = CityHash64(buf, len); |
0 |
0 |
0 |
|
| 17 |
0 |
▶ | RETVAL = newSVuv((UV) cityhash_int); |
Branch: 2 branches
| Branch | True | False | Total |
| RETVAL = newSVuv((UV) cityhash_int); |
0 |
0 |
0 |
| RETVAL = newSVuv((UV) cityhash_int); |
0 |
0 |
0 |
|
| 18 |
|
| OUTPUT: |
| 19 |
|
| RETVAL |