Skip to content

Commit

Permalink
Merge branch 'master' into public
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacklin committed May 5, 2022
2 parents 32e5334 + 44fa1dc commit f966e84
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions warp/native/builtin.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,16 +530,51 @@ 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)
{
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);
Expand Down

0 comments on commit f966e84

Please sign in to comment.