mirror of
				https://github.com/Ryujinx/Ryujinx.git
				synced 2025-10-24 23:22:26 -07:00 
			
		
		
		
	* Get rid of Reflection.Emit dependency on CPU and Shader projects * Remove useless private sets * Missed those due to the alignment
		
			
				
	
	
		
			21 lines
		
	
	
		
			616 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			616 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace ARMeilleure.Decoders
 | |
| {
 | |
|     class OpCodeSimdCvt : OpCodeSimd
 | |
|     {
 | |
|         public int FBits { get; }
 | |
| 
 | |
|         public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeSimdCvt(inst, address, opCode);
 | |
| 
 | |
|         public OpCodeSimdCvt(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
 | |
|         {
 | |
|             int scale = (opCode >> 10) & 0x3f;
 | |
|             int sf    = (opCode >> 31) & 0x1;
 | |
| 
 | |
|             FBits = 64 - scale;
 | |
| 
 | |
|             RegisterSize = sf != 0
 | |
|                 ? RegisterSize.Int64
 | |
|                 : RegisterSize.Int32;
 | |
|         }
 | |
|     }
 | |
| } |