From 1153197869f82ffc3dc7ef75f64fbef753107a04 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Fri, 15 Apr 2022 22:55:25 +0200 Subject: [PATCH] update mum hash --- VERSION | 2 +- jit_ui.c | 26 ++------------------------ jit_ui.ttl | 4 ++-- mum.h | 2 +- 4 files changed, 6 insertions(+), 28 deletions(-) diff --git a/VERSION b/VERSION index 044b095..409a1ed 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.423 +0.1.425 diff --git a/jit_ui.c b/jit_ui.c index 28c77f8..78fa779 100644 --- a/jit_ui.c +++ b/jit_ui.c @@ -1079,7 +1079,6 @@ instantiate(const LV2UI_Descriptor *descriptor, return NULL; void *parent = NULL; - LV2UI_Resize *host_resize = NULL; LV2_Options_Option *opts = NULL; for(int i=0; features[i]; i++) { @@ -1087,10 +1086,6 @@ instantiate(const LV2UI_Descriptor *descriptor, { parent = features[i]->data; } - else if(!strcmp(features[i]->URI, LV2_UI__resize)) - { - host_resize = features[i]->data; - } else if(!strcmp(features[i]->URI, LV2_URID__map)) { handle->map = features[i]->data; @@ -1239,11 +1234,6 @@ instantiate(const LV2UI_Descriptor *descriptor, handle->state.font_height = 16; _update_font_height(handle); - if(host_resize) - { - host_resize->ui_resize(host_resize->handle, w, h); - } - strncpy(handle->template, "/tmp/XXXXXX.dsp", sizeof(handle->template)); handle->fd = mkstemps(handle->template, 4); if(handle->fd == -1) @@ -1365,25 +1355,13 @@ static const LV2UI_Idle_Interface idle_ext = { .idle = _idle }; -static int -_resize(LV2UI_Handle instance, int width, int height) -{ - plughandle_t *handle = instance; - - return d2tk_frontend_set_size(handle->dpugl, width, height); -} - -static const LV2UI_Resize resize_ext = { - .ui_resize = _resize -}; - static const void * extension_data(const char *uri) { if(!strcmp(uri, LV2_UI__idleInterface)) + { return &idle_ext; - else if(!strcmp(uri, LV2_UI__resize)) - return &resize_ext; + } return NULL; } diff --git a/jit_ui.ttl b/jit_ui.ttl index 09cfaf1..1d9a648 100644 --- a/jit_ui.ttl +++ b/jit_ui.ttl @@ -34,6 +34,6 @@ jit:ui ui:protocol atom:eventTransfer ; ] ; lv2:requiredFeature ui:idleInterface, urid:map, ui:parent ; - lv2:optionalFeature ui:resize, opts:options, ui:requestValue ; + lv2:optionalFeature opts:options, ui:requestValue ; opts:supportedOption ui:scaleFactor ; - lv2:extensionData ui:idleInterface, ui:resize . + lv2:extensionData ui:idleInterface . diff --git a/mum.h b/mum.h index e42e2d7..72d0be3 100644 --- a/mum.h +++ b/mum.h @@ -109,7 +109,7 @@ _mum (uint64_t v, uint64_t p) { multiplication. If we use a generic code we actually call a function doing 128x128->128 bit multiplication. The function is very slow. */ - lo = v * p, hi; + lo = v * p; asm ("umulh %0, %1, %2" : "=r" (hi) : "r" (v), "r" (p)); #else __uint128_t r = (__uint128_t) v * (__uint128_t) p; -- 2.38.5