mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-03 01:12:23 +00:00
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
|
|
||
|
#pragma once
|
||
|
|
||
|
namespace llvm { class Value; }
|
||
|
namespace llvm { class Type; }
|
||
|
|
||
|
class SSAUByte
|
||
|
{
|
||
|
public:
|
||
|
SSAUByte();
|
||
|
SSAUByte(unsigned char constant);
|
||
|
explicit SSAUByte(llvm::Value *v);
|
||
|
static SSAUByte from_llvm(llvm::Value *v) { return SSAUByte(v); }
|
||
|
static llvm::Type *llvm_type();
|
||
|
|
||
|
llvm::Value *v;
|
||
|
};
|
||
|
|
||
|
SSAUByte operator+(const SSAUByte &a, const SSAUByte &b);
|
||
|
SSAUByte operator-(const SSAUByte &a, const SSAUByte &b);
|
||
|
SSAUByte operator*(const SSAUByte &a, const SSAUByte &b);
|
||
|
//SSAUByte operator/(const SSAUByte &a, const SSAUByte &b);
|
||
|
|
||
|
SSAUByte operator+(unsigned char a, const SSAUByte &b);
|
||
|
SSAUByte operator-(unsigned char a, const SSAUByte &b);
|
||
|
SSAUByte operator*(unsigned char a, const SSAUByte &b);
|
||
|
//SSAUByte operator/(unsigned char a, const SSAUByte &b);
|
||
|
|
||
|
SSAUByte operator+(const SSAUByte &a, unsigned char b);
|
||
|
SSAUByte operator-(const SSAUByte &a, unsigned char b);
|
||
|
SSAUByte operator*(const SSAUByte &a, unsigned char b);
|
||
|
//SSAUByte operator/(const SSAUByte &a, unsigned char b);
|
||
|
|
||
|
SSAUByte operator<<(const SSAUByte &a, unsigned char bits);
|
||
|
SSAUByte operator>>(const SSAUByte &a, unsigned char bits);
|