gencpp/test/gen/math.gen.hpp

25 lines
226 B
C++
Raw Normal View History

2023-04-02 08:53:15 -07:00
inline
u8 square(u8 value)
2023-04-02 08:53:15 -07:00
{
return value * value;
2023-04-02 08:53:15 -07:00
}
inline
u16 square(u16 value)
2023-04-02 08:53:15 -07:00
{
return value * value;
2023-04-02 08:53:15 -07:00
}
inline
u32 square(u32 value)
2023-04-02 08:53:15 -07:00
{
return value * value;
2023-04-02 08:53:15 -07:00
}
inline
u64 square(u64 value)
2023-04-02 08:53:15 -07:00
{
return value * value;
2023-04-02 08:53:15 -07:00
}