}
}
- uint_type value = 0;
+ uint_type new_value = 0;
if (negative) {
- value |= sign_mask;
+ new_value |= sign_mask;
}
exponent += exponent_bias;
assert(exponent >= 0);
// put it all together
exponent = (exponent << exponent_left_shift) & exponent_mask;
significand &= fraction_encode_mask;
- value |= exponent | significand;
- value_ = BitwiseCast<T>(value);
+ new_value |= exponent | significand;
+ value_ = BitwiseCast<T>(new_value);
}
// Increments the significand of this number by the given amount.
// Encapsulates the data used during the assembly of a SPIR-V module.
class AssemblyContext {
public:
- AssemblyContext(spv_text text, spv_diagnostic* diagnostic)
+ AssemblyContext(spv_text text, spv_diagnostic* diagnostic_arg)
: current_position_({}),
- pDiagnostic_(diagnostic),
+ pDiagnostic_(diagnostic_arg),
text_(text),
bound_(1) {}
namespace libspirv {
-ValidationState_t::ValidationState_t(spv_diagnostic* diag, uint32_t options)
- : diagnostic_(diag),
+ValidationState_t::ValidationState_t(spv_diagnostic* diagnostic,
+ uint32_t options)
+ : diagnostic_(diagnostic),
instruction_counter_(0),
defined_ids_{},
unresolved_forward_ids_{},