text: /*! @file int32_to_int16.cc
   *  @brief int32 to int16 converter.
   *  @author Markovtsev Vadim <v.markovtsev@samsung.com>
   *  @version 1.0
   *
   *  @section Notes
   *  This code partially conforms to <a href="http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml">Google C++ Style Guide</a>.
   *
   *  @section Copyright
   *  Copyright © 2013 Samsung R&D Institute Russia
   *
   *  @section License
   *  Licensed to the Apache Software Foundation (ASF) under one
   *  or more contributor license agreements.  See the NOTICE file
   *  distributed with this work for additional information
   *  regarding copyright ownership.  The ASF licenses this file
   *  to you under the Apache License, Version 2.0 (the
   *  "License"); you may not use this file except in compliance
   *  with the License.  You may obtain a copy of the License at
   *
   *  http://www.apache.org/licenses/LICENSE-2.0
   *
   *  Unless required by applicable law or agreed to in writing,
   *  software distributed under the License is distributed on an
   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   *  KIND, either express or implied.  See the License for the
   *  specific language governing permissions and limitations
   *  under the License.
   */
  
  #include "src/formats/int32_to_int16.h"
  #include <simd/arithmetic-inl.h>
  
  namespace sound_feature_extraction {
  namespace formats {
  
  void Int32ToInt16Raw::Do(const int32_t* in,
                           int16_t* out) const noexcept {
    int32_to_int16(in, input_format_->Size(), out);
  }
  
  REGISTER_TRANSFORM(Int32ToInt16Raw);
  
  }  // namespace formats
  }  // namespace sound_feature_extraction
  