From bd8c55fe268e8e352508341ebd739ef4fc68eb92 Mon Sep 17 00:00:00 2001 From: "Field G. Van Zee" Date: Wed, 27 Jun 2018 15:52:37 -0500 Subject: [PATCH] Added dt_on_output field to auxinfo_t. Details: - Added a new field to the auxinfo_t struct that can be used, in theory, to request type conversion before the microkernel stores/accumulates its microtile back to memory. - Added the appropriate get/set static functions to bli_type_defs.h. --- frame/base/bli_auxinfo.h | 10 ++++++++++ frame/include/bli_type_defs.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/frame/base/bli_auxinfo.h b/frame/base/bli_auxinfo.h index 3fbc8dbdb..d51e58225 100644 --- a/frame/base/bli_auxinfo.h +++ b/frame/base/bli_auxinfo.h @@ -65,6 +65,11 @@ static inc_t bli_auxinfo_is_b( auxinfo_t* ai ) return ai->is_b; } +static inc_t bli_auxinfo_dt_on_output( auxinfo_t* ai ) +{ + return ai->dt_on_output; +} + // auxinfo_t field modification @@ -100,5 +105,10 @@ static void bli_auxinfo_set_is_b( inc_t is, auxinfo_t* ai ) ai->is_b = is; } +static void bli_auxinfo_set_dt_on_output( num_t dt_on_output, auxinfo_t* ai ) +{ + ai->dt_on_output = dt_on_output; +} + #endif diff --git a/frame/include/bli_type_defs.h b/frame/include/bli_type_defs.h index 2d400518d..35f317735 100644 --- a/frame/include/bli_type_defs.h +++ b/frame/include/bli_type_defs.h @@ -998,6 +998,9 @@ typedef struct inc_t is_a; inc_t is_b; + // The type to convert to on output. + num_t dt_on_output; + } auxinfo_t;