https://github.com/halide/Halide
Raw File
Tip revision: 8b5ca06200fc7f87324caca25f7b07f5286271e5 authored by Andrew Adams on 22 June 2023, 22:05:22 UTC
Revert inclusion of cmath
Tip revision: 8b5ca06
sim_qurt.cpp
#include "hexagon_standalone.h"

extern "C" {

// Provide an implementation of qurt to redirect to the appropriate
// simulator calls.
int qurt_hvx_lock(int mode) {
    SIM_ACQUIRE_HVX;
    if (mode == 0) {
        SIM_CLEAR_HVX_DOUBLE_MODE;
    } else {
        SIM_SET_HVX_DOUBLE_MODE;
    }
    return 0;
}

int qurt_hvx_unlock() {
    SIM_RELEASE_HVX;
    return 0;
}

}  // extern "C"
back to top