CS计算机代考程序代写 prolog .globl relu

.globl relu

.text
# ==============================================================================
# FUNCTION: Performs an inplace element-wise ReLU on an array of ints
# Arguments:
# a0 (int*) is the pointer to the array
# a1 (int) is the # of elements in the array
# Returns:
# None
#
# If the length of the vector is less than 1,
# this function exits with error code 8.
# ==============================================================================
relu:
# Prologue

loop_start:

loop_continue:

loop_end:

# Epilogue

ret