Lib/v3d/instr/SmallImm.cpp
/**
 * @return true if conversion succeeded, false otherwise
 */
@return true if conversion succeeded, false otherwise
@return true if conversion succeeded false otherwise
bool SmallImm::float_to_opcode_value(float value, int &rep_value) {
  bool found_it  = false;
  for (auto &item : float_encodings) {
    if (item.val == value) {
      rep_value = item.encoded;
      found_it = true;
      break;
    }
  }
  return found_it;
}
bool SmallImm :: float_to_opcode_value ( float value , int & rep_value ) { bool found_it = false ; for ( auto & item : float_encodings ) { if ( item . val == value ) { rep_value = item . encoded ; found_it = true ; break ; } } return found_it ; }
@return true if conversion succeeded, false otherwise
@return true if conversion succeeded false otherwise