From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1C54EA0555; Wed, 25 May 2022 22:31:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B260A40146; Wed, 25 May 2022 22:31:28 +0200 (CEST) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mails.dpdk.org (Postfix) with ESMTP id 828D240143 for ; Wed, 25 May 2022 22:31:27 +0200 (CEST) Received: by mail-pl1-f178.google.com with SMTP id w3so12921338plp.13 for ; Wed, 25 May 2022 13:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W2yRC5Er0PJzHAMT5ySlYns5Wg8CGxNPTuoWPaLUZRs=; b=ecyoh8IFWUcAmZY8Ep5r1NtvYiRcgSE4D18IJf/pPlb6sRtQqlx073n7eeMNHcErVi D96M5i1sTLY8KhLbKN4fi8MYSz/zLM7nLTuVNWlD88dAHrBFNFTq0/7vj7lqh+zQ/JbT t36V9Isz1/8du4FHtya3VNpGU4SRI8jxuPXgnguNJZ8BC54asJyAfm4YsObUDz1cXBOs 4Q9LY5d9aFop1EpitA+3OqiofhtcAqWq3+U/d1JGao6aBN+DFjbxgFRBqtHD3Y/6BhAv zAl+nh8B7TTw3d20uFghv5C/CheQWdrV5V2jEgbdWeuLMjUYsU0u4scEMYwLEuklxPnM EXVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W2yRC5Er0PJzHAMT5ySlYns5Wg8CGxNPTuoWPaLUZRs=; b=0YtWwhi+oKq2fWm0hI9jgr2SP71PlgvSihd/OLYpy0tEw+hzu9v1kV9/JlyKAA2HWT FsDmYtVtx/qYfMi+8LdP/WAmO3n9TUl46v6L2Sp6XLvEwmVKqkT9SqFOn7dOshVsDW80 dm/o9TFyWXx4MHeIEyZpBrlmu8LSxV1XeSs5dYyVGlqbKBPZbUsfCFWGzhE1pz2Iu77r 8uAuwIYqK2SpalDpNuAI+T8tvK3oslW+mbJjHSNruL6RLp3jtuaU1KMR/Y2Ry+ClZxW0 O1KkKf6L4JWtJwvBLU7HF1Tg/+v/YfqOB6x8YS0/fsNdjX/SD4oTEw1UFnEjuGWTe469 xTaQ== X-Gm-Message-State: AOAM533hr7jcwnFG1WMr5Kf605k4FjAHdE2pBb8j2FyPRbFBYOtvPTI6 Q+UIoMxLy9LBVVnbvsGlfIV3xh8F9tvbyQ== X-Google-Smtp-Source: ABdhPJxrB1y1wqN5nB8I6yF8y5D9NZn2xEOn1RymSm2K0AWZ/DFBMdDUlhQh+SYFC24nBH1Te6aMmA== X-Received: by 2002:a17:90a:9412:b0:1e0:c0cc:8630 with SMTP id r18-20020a17090a941200b001e0c0cc8630mr2871984pjo.77.1653510686104; Wed, 25 May 2022 13:31:26 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id a26-20020a62d41a000000b0050dc7628176sm11766091pfh.80.2022.05.25.13.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 13:31:25 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v4 0/3] introduce random floating point function Date: Wed, 25 May 2022 13:31:20 -0700 Message-Id: <20220525203123.277180-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220524184623.480646-1-stephen@networkplumber.org> References: <20220524184623.480646-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Introduce a new random number function to get a floating point value. Then use it to fix PIE scheduler. v4 - use slower divide method in rte_drand() if library does not have ieee754 (FreeBSD and Windows?) - fix some typos v3 - rename to rte_drand() and other review feedback - fix warnings with some compilers in test code Stephen Hemminger (3): random: add rte_drand() function rte_pie: remove unnecessary floating point rte_pie: fix incorrect floating point math app/test/test_rand_perf.c | 7 +++++ doc/guides/rel_notes/release_22_07.rst | 5 ++++ lib/eal/common/rte_random.c | 41 ++++++++++++++++++++++++++ lib/eal/include/rte_random.h | 18 +++++++++++ lib/eal/meson.build | 3 ++ lib/eal/version.map | 1 + lib/sched/rte_pie.h | 7 ++--- 7 files changed, 77 insertions(+), 5 deletions(-) -- 2.35.1