diff --git a/warp/native/builtin.h b/warp/native/builtin.h index 2ee85bbd5..27bd7865c 100644 --- a/warp/native/builtin.h +++ b/warp/native/builtin.h @@ -530,9 +530,39 @@ inline CUDA_CALLABLE void print(int i) printf("%d\n", i); } -inline CUDA_CALLABLE void print(int64_t i) +inline CUDA_CALLABLE void print(short i) { - printf("%lld\n", (long long)i); + printf("%hd\n", i); +} + +inline CUDA_CALLABLE void print(long i) +{ + printf("%ld\n", i); +} + +inline CUDA_CALLABLE void print(long long i) +{ + printf("%lld\n", i); +} + +inline CUDA_CALLABLE void print(unsigned i) +{ + printf("%u\n", i); +} + +inline CUDA_CALLABLE void print(unsigned short i) +{ + printf("%hu\n", i); +} + +inline CUDA_CALLABLE void print(unsigned long i) +{ + printf("%lu\n", i); +} + +inline CUDA_CALLABLE void print(unsigned long long i) +{ + printf("%llu\n", i); } inline CUDA_CALLABLE void print(float f) @@ -540,6 +570,11 @@ inline CUDA_CALLABLE void print(float f) printf("%g\n", f); } +inline CUDA_CALLABLE void print(double f) +{ + printf("%g\n", f); +} + inline CUDA_CALLABLE void print(vec2 v) { printf("%g %g\n", v.x, v.y);