From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mx.groups.io with SMTP id smtpd.web11.1326.1648342671879394095 for ; Sat, 26 Mar 2022 17:57:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UFh2i1/k; spf=pass (domain: gmail.com, ip: 209.85.221.46, mailfrom: pedro.falcato@gmail.com) Received: by mail-wr1-f46.google.com with SMTP id w21so10968808wra.2 for ; Sat, 26 Mar 2022 17:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Cq9Ns9ARWRKeZUn0eyfOC8DItPWNhH/CzhS8cn0op+M=; b=UFh2i1/kGzCm1qNBuSaiI2IFvfVuHgA9H+TmDXWy1cRYmiDZkVfjCcwANjkr6tUjv3 quazcOj0t6IziLS7s7C3mFRCFzzIcL1Rze/a4LuSbOjsrrLKliqPDIhtTEPwIotIcdkf KLcR7mRD4Cq+5iDIePRZ9dmxEDYbipOVO0RTmvTwlFW8XAQk36y+cltdUbRfxFQzS8wB y9MKTiuwvOr3E19G+GksD9It+u7/3yYwPc8CiM4XEmOlCPLKFqu51iA4sPc8puFTBB3v 1yjwq29MMwfq0rADt7eKWxAvXIWIT/jwoxXuYQdf1yRa1J/L2WTui7Do1TK7EYwpzuSH e4Yw== 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:mime-version :content-transfer-encoding; bh=Cq9Ns9ARWRKeZUn0eyfOC8DItPWNhH/CzhS8cn0op+M=; b=5B12gtLJxP2L3fwqCXotFc/bxSct0TUCyxzX2vCUrvrYkHJU/Gwwu7DDFnIBbXd1LY laDger9fPyyieyKd0TR3a+1YImEXq3IXZnjU048Cj1zsKwRnqJ2qmMl54MY7xozoyLLF kZja4dPMLYAtkEvStwq099IgC+/iKkmTaDem69UQ0tY0Cp9dhuZRr7EcDsJAmKETZwFO eR8A2PrZtZXcFvSXDMmFdozWFdneCAsH1+WTYPmFeToU3KYTe40LNDxxRhxfps5DfoCR ITGHOKGnAP6fsO7VXjabGAhWQKwpg1ndOKyueDKeTzTFvvZ5IE0Sbkeh9llJjATJJljf CQjg== X-Gm-Message-State: AOAM530oE9j67KavOiwbmY9JFSNrSyQK1lITVLzRlAStZgnuuJrTHrK+ UsLHDHbt4Y5i/hhU9vODWN2+oW1apANDOQ== X-Google-Smtp-Source: ABdhPJyRRT6OH0Ix57YGGNLfOEGlE1G7oFEGnQ3Hh3ZsJFbTmG6iJMYOfS9bkRdPBcT0i0sEAVJ4Ow== X-Received: by 2002:a5d:6292:0:b0:203:d745:5a94 with SMTP id k18-20020a5d6292000000b00203d7455a94mr15202788wru.286.1648342670121; Sat, 26 Mar 2022 17:57:50 -0700 (PDT) Return-Path: Received: from PC-PEDRO-ARCH.lan ([2001:8a0:7280:5801:9441:3dce:686c:bfc7]) by smtp.gmail.com with ESMTPSA id b3-20020adfd1c3000000b00205820686dasm10143304wrd.5.2022.03.26.17.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Mar 2022 17:57:49 -0700 (PDT) From: "Pedro Falcato" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu , Hao A Wu Subject: [PATCH 0/2] Add CRC16 and CRC32c to MdePkg/BaseLib Date: Sun, 27 Mar 2022 00:57:46 +0000 Message-Id: <20220327005748.92041-1-pedro.falcato@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3871 This patch-set adds CRC16 and CRC32c to BaseLib and removes SourceLevelDebugPkg (the only place where I could find CRC16 being used in edk2)'s implementation. Note that there's another patch-set with edk2-platforms changes that's supposed to be applied more or less around the time this one is applied. The process may be awkward, but hopefully nothing breaks. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Hao A Wu Pedro Falcato (2): MdePkg/BaseLib: Add CRC16 and CRC32c implementations SourceLevelDebugPkg/DebugAgent: Delete the CRC16 implementation MdePkg/Include/Library/BaseLib.h | 35 ++++- MdePkg/Library/BaseLib/CheckSum.c | 144 ++++++++++++++++++ .../DebugAgent/DebugAgentCommon/DebugAgent.c | 35 ----- 3 files changed, 178 insertions(+), 36 deletions(-) -- 2.35.1