From fd9ffc4c61ceb30e8b9cbc0024dc8c6128fa6d27 Mon Sep 17 00:00:00 2001 From: x Date: Thu, 23 Mar 2023 11:29:38 +0100 Subject: [PATCH] TurboPFor: Variable simple --- lib/vsimple.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/vsimple.c b/lib/vsimple.c index 19be24d..e9f98dd 100644 --- a/lib/vsimple.c +++ b/lib/vsimple.c @@ -46,6 +46,11 @@ #define PREFETCH(_ip_,_rw_) __builtin_prefetch(_ip_,_rw_) #endif +size_t vsbound8( size_t n) { return n*(1+1); } +size_t vsbound16(size_t n) { return n*(2+1); } +size_t vsbound32(size_t n) { return n*(4+1); } +size_t vsbound64(size_t n) { return n*(8+1); } + #ifndef SV_LIM32 #define USE_RLE