#include "operations.cuh"

/*
original_author: Patricio Gonzalez Vivo
description: power of 3
use: pow3(<float|float2|float3|float4> x)
*/

#ifndef FNC_POW3
#define FNC_POW3

inline __host__ __device__ float pow3(float x) { return x * x * x; }
inline __host__ __device__ float2 pow3(const float2& x) { return x * x * x; }
inline __host__ __device__ float3 pow3(const float3& x) { return x * x * x; }
inline __host__ __device__ float4 pow3(const float4& x) { return x * x * x; }

#endif
