// File: kernel.cpp
#include "loop_029.h"
#include <stdint.h>

extern "C" void inner_loop_029(struct loop_029_data * data) {
  double *input = data->input;
  int64_t *scale = data->scale;
  double *output = data->output;
  int64_t size = data->size;

  for (int64_t i = 0; i < size; i++) {
    output[i] = __builtin_scalbn(input[i], (int)scale[i]);
  }
}